API reference
API reference
Select your platform
No SDKs available
No versions available

DropDownGroup Class

Extends MonoBehaviour

Protected Fields

_started : bool
Signature
bool _started

Fields

WhenSelectionChanged : UnityEvent< int >
Event triggered everytime the selection changes.
Signature
UnityEvent<int> WhenSelectionChanged

Properties

Icon : Image
[Get][Set]
Image for the icon in the header.
Signature
Image Icon
IconName : string
[Get][Set]
Name of the Gameobject holding the icon in each option.
Signature
string IconName
SelectedIndex : int
[Get]
The Option currently selected.
-1 if none is selected
Signature
int SelectedIndex
SelectedToggle : Toggle
[Get]
The Toggle for the currently selected option.
Null if none is selected
Signature
Toggle SelectedToggle
Subtitle : TextMeshProUGUI
[Get][Set]
Subtitle label in the header.
Signature
TextMeshProUGUI Subtitle
SubtitleName : string
[Get][Set]
Name of the Gameobject holding the subtitle in each option.
Signature
string SubtitleName
Title : TextMeshProUGUI
[Get][Set]
Title label in the header.
Signature
TextMeshProUGUI Title
TitleName : string
[Get][Set]
Name of the Gameobject holding the title in each option.
Signature
string TitleName

Protected Methods

OnDisable ()
Signature
virtual void OnDisable()
Returns
void
OnEnable ()
Signature
virtual void OnEnable()
Returns
void
Reset ()
Signature
virtual void Reset()
Returns
void
Start ()
Signature
virtual void Start()
Returns
void

Methods

InjectAllDropDownShowSelectedItem ( toggles , toggleGroup )
Signature
void InjectAllDropDownShowSelectedItem(Toggle[] toggles, ToggleGroup toggleGroup)
Parameters
toggles: Toggle[]
toggleGroup: ToggleGroup
Returns
void
InjectToggleGroup ( toggleGroup )
Signature
void InjectToggleGroup(ToggleGroup toggleGroup)
Parameters
toggleGroup: ToggleGroup
Returns
void
InjectToggles ( toggles )
Signature
void InjectToggles(Toggle[] toggles)
Parameters
toggles: Toggle[]
Returns
void