Scripting API

ToggleGroup

class in UnityEngine.UI · UnityEngine.UI · inherits from UIBehaviour

13 of 13 of Unity's members
In Tassix

Toggles of which at most one is on (exactly one, unless switching off is allowed).

Properties 1

bool allowSwitchOff { get; set; }

Methods 8

IEnumerable<Toggle> ActiveToggles()
bool AnyTogglesOn()
void EnsureValidState()

Unless switching off is allowed, one toggle is on: the first, if none is.

Toggle? GetFirstActiveToggle()
void NotifyToggleOn(Toggle toggle, bool sendCallback = true)
void RegisterToggle(Toggle toggle)
void SetAllTogglesOff(bool sendCallback = true)
void UnregisterToggle(Toggle toggle)