Class UIToggleGroup
public class UIToggleGroup : MonoBehaviour
- Inheritance
-
UIToggleGroup
Properties
Count
public int Count { get; }
Property Value
- int
canSelectMultiple
public bool canSelectMultiple { get; }
Property Value
- bool
canSelectNone
public bool canSelectNone { get; }
Property Value
- bool
currentToggle
public UIToggleButton currentToggle { get; }
Property Value
- UIToggleButton
currentToggleIndex
public int currentToggleIndex { get; }
Property Value
- int
hasSelectedToggle
public bool hasSelectedToggle { get; }
Property Value
- bool
selectedIndices
public int[] selectedIndices { get; }
Property Value
- int[]
selectedToggles
public UIToggleButton[] selectedToggles { get; }
Property Value
- UIToggleButton[]
swapClickAndCtrlClick
public bool swapClickAndCtrlClick { get; }
Property Value
- bool
toggles
public List<UIToggleButton> toggles { get; }
Property Value
- List<UIToggleButton>
Methods
public bool Add(UIToggleButton toggle)
Parameters
toggle
UIToggleButton
Returns
- bool
Clear()
public bool Contains(UIToggleButton toggle)
Parameters
toggle
UIToggleButton
Returns
- bool
public bool CtrlPress(UIToggleButton toggle)
Parameters
toggle
UIToggleButton
Returns
- bool
CtrlPress(int)
public bool CtrlPress(int index)
Parameters
index
int
Returns
- bool
DestroyToggles()
public void DestroyToggles()
public bool Press(UIToggleButton toggle)
Parameters
toggle
UIToggleButton
Returns
- bool
Press(int)
public bool Press(int index)
Parameters
index
int
Returns
- bool
public bool PressForceEvent(UIToggleButton toggle)
Parameters
toggle
UIToggleButton
Returns
- bool
PressForceEvent(int)
public bool PressForceEvent(int index)
Parameters
index
int
Returns
- bool
public bool PressOrCtrlPress(UIToggleButton toggle, bool ctrlClick)
Parameters
toggle
UIToggleButton
ctrlClick
bool
Returns
- bool
public bool Remove(UIToggleButton toggle)
Parameters
toggle
UIToggleButton
Returns
- bool
SubscribeToSelectedToggleChange(UnityAction)
public void SubscribeToSelectedToggleChange(UnityAction call)
Parameters
call
UnityAction