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

SimpleDropdownList Class

A dropdown ui interface that uses 'UnityEngine.Text' labels and builds content via a load method that accepts a list of strings.
Meta::Voice::Samples::TTSVoices::SimpleDropdownList extends MonoBehaviour.

Overview

Properties

string
bool
Whether the popup is currently showing or not

Object Data

void
Awake ( )
On awake, find dropdown cell
void
Start ( )
Perform dropdown setup methods
void
Add toggle delegate
void
Remove toggle delegate
void
LoadCell
( Toggle cell,
int index,
string option,
ref float y )
Load a specific cell

Public Member Functions

void
LoadDropdown
( string [] newOptions )
Load dropdown with specified options
void
SelectOption
( int newIndex )
Select an item in the dropdown list
void
SelectOption
( string option )
Select option by name
int
GetOptionIndex
( string option )
A method for obtaining the index of a dropdown option string.
void
SetShowing
( bool toShowing )
Show or hide the popup

Details

Fields

string Meta.Voice.Samples.TTSVoices.SimpleDropdownList.DropdownToggleUnselectedText
No description available.
string [] Meta.Voice.Samples.TTSVoices.SimpleDropdownList.Options
No description available.
int Meta.Voice.Samples.TTSVoices.SimpleDropdownList.SelectedOptionIndex
No description available.
SimpleDropdownIndexEvent Meta.Voice.Samples.TTSVoices.SimpleDropdownList.OnIndexSelected
No description available.
SimpleDropdownOptionEvent Meta.Voice.Samples.TTSVoices.SimpleDropdownList.OnOptionSelected
No description available.

Properties

string Meta.Voice.Samples.TTSVoices.SimpleDropdownList.SelectedOption
No description available.
bool Meta.Voice.Samples.TTSVoices.SimpleDropdownList.IsShowing
Whether the popup is currently showing or not

Object Data

virtual void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.Awake ( )
On awake, find dropdown cell
virtual void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.Start ( )
Perform dropdown setup methods
virtual void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.OnEnable ( )
Add toggle delegate
virtual void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.OnDisable ( )
Remove toggle delegate
virtual void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.LoadCell
( Toggle cell,
int index,
string option,
ref float y )
Load a specific cell
Parameters
index
Cell index
Returns
Height of cell

Member Functions

void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.LoadDropdown
( string [] newOptions )
Load dropdown with specified options
Parameters
newOptions
The options to be used
void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.SelectOption
( int newIndex )
Select an item in the dropdown list
Parameters
newIndex
The option index to be selected
void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.SelectOption
( string option )
Select option by name
Parameters
option
The option to be selected
int Meta.Voice.Samples.TTSVoices.SimpleDropdownList.GetOptionIndex
( string option )
A method for obtaining the index of a dropdown option string.
Parameters
option
Accepts an option text string that matches a loaded text option.
Returns
Returns the index of the provided option string
void Meta.Voice.Samples.TTSVoices.SimpleDropdownList.SetShowing
( bool toShowing )
Show or hide the popup
Parameters
toShowing
The option index to be selected
Did you find this page helpful?
Thumbs up icon
Thumbs down icon