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

DropDownGroup Class

Extends MonoBehaviour

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.Samples.DropDownGroup._started

Fields

WhenSelectionChanged : UnityEvent< int >
Event triggered everytime the selection changes
Signature
UnityEvent<int> Oculus.Interaction.Samples.DropDownGroup.WhenSelectionChanged

Properties

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

Protected Methods

OnDisable ()
Signature
virtual void Oculus.Interaction.Samples.DropDownGroup.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.Samples.DropDownGroup.OnEnable()
Returns
void
Reset ()
Signature
virtual void Oculus.Interaction.Samples.DropDownGroup.Reset()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.Samples.DropDownGroup.Start()
Returns
void

Methods

InjectAllDropDownShowSelectedItem ( toggles , toggleGroup )
Signature
void Oculus.Interaction.Samples.DropDownGroup.InjectAllDropDownShowSelectedItem(Toggle[] toggles, ToggleGroup toggleGroup)
Parameters
toggles: Toggle []
toggleGroup: ToggleGroup
Returns
void
InjectToggleGroup ( toggleGroup )
Signature
void Oculus.Interaction.Samples.DropDownGroup.InjectToggleGroup(ToggleGroup toggleGroup)
Parameters
toggleGroup: ToggleGroup
Returns
void
InjectToggles ( toggles )
Signature
void Oculus.Interaction.Samples.DropDownGroup.InjectToggles(Toggle[] toggles)
Parameters
toggles: Toggle []
Returns
void