メインコンテンツまでスキップ

Class YauiToggleGroup

Makes its toggles exclusive: switching one on switches the others off (radio buttons).

Assembly: Yaui.dll​
View Source​
Declaration
public class YauiToggleGroup : MonoBehaviour

Properties​

AllowSwitchOff​

View Source​
Declaration
public bool AllowSwitchOff { get; set; }

Toggles​

The enabled toggles of the group.

View Source​
Declaration
public IReadOnlyList<YauiToggle> Toggles { get; }

ActiveToggle​

The first toggle that is on, or null.

View Source​
Declaration
public YauiToggle ActiveToggle { get; }

Methods​

AnyTogglesOn()​

View Source​
Declaration
public bool AnyTogglesOn()
Returns​

System.Boolean

SetAllTogglesOff(bool)​

Switches every toggle off, even if switching off is not allowed.

View Source​
Declaration
public void SetAllTogglesOff(bool notify = true)
Parameters​
TypeName
System.Booleannotify