Click or drag to resize

MCGUIDrawSelectionGridT Method

Make a bunch of toggles. Only none or one can be selected.

Selection grid is GUILayout element and must be drawn in GUILayout scope.

Namespace:  HightlanderSolutions.MeshCheckerEditorExtension.UserInterface
Assembly:  MeshCheckerLibrary (in MeshCheckerLibrary.dll) Version: 2.3
Syntax
C#
[PublicAPIAttribute]
public static T DrawSelectionGrid<T>(
	[NotNullAttribute] IList<SelectionGridItem<T>> items,
	T selectedValue,
	T emptyValue
)

Parameters

items
Type: System.Collections.GenericIListSelectionGridItemT
List of SelectionGridItemT that will be drawn
selectedValue
Type: T
Object, that referenced by currently selected SelectionGridItemT
emptyValue
Type: T
Object, that will be returned when none of grid items are selected.

Type Parameters

T
Type of object, which referenced to SelectionGridItemT

Return Value

Type: T
Returns ReferencedItem of selected grid item when one of them are selected and emptyValue when neither are selected.
See Also