Table of Contents

Class UIToggleGroup

Namespace
PAC.UI
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

Add(UIToggleButton)

public bool Add(UIToggleButton toggle)

Parameters

toggle UIToggleButton

Returns

bool

Clear()

public void Clear()

Contains(UIToggleButton)

public bool Contains(UIToggleButton toggle)

Parameters

toggle UIToggleButton

Returns

bool

CtrlPress(UIToggleButton)

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()

Press(UIToggleButton)

public bool Press(UIToggleButton toggle)

Parameters

toggle UIToggleButton

Returns

bool

Press(int)

public bool Press(int index)

Parameters

index int

Returns

bool

PressForceEvent(UIToggleButton)

public bool PressForceEvent(UIToggleButton toggle)

Parameters

toggle UIToggleButton

Returns

bool

PressForceEvent(int)

public bool PressForceEvent(int index)

Parameters

index int

Returns

bool

PressOrCtrlPress(UIToggleButton, bool)

public bool PressOrCtrlPress(UIToggleButton toggle, bool ctrlClick)

Parameters

toggle UIToggleButton
ctrlClick bool

Returns

bool

Remove(UIToggleButton)

public bool Remove(UIToggleButton toggle)

Parameters

toggle UIToggleButton

Returns

bool

SubscribeToSelectedToggleChange(UnityAction)

public void SubscribeToSelectedToggleChange(UnityAction call)

Parameters

call UnityAction