PixelCrushers.UIDropdownField Class Reference

A UIDropdownField can refer to a UI.Dropdown or TMPro.TMP_Dropdown. More...

Public Member Functions

 UIDropdownField ()
 
 UIDropdownField (UnityEngine.UI.Dropdown uiDropdown)
 
void SetActive (bool value)
 
void ClearOptions ()
 
void AddOption (string text)
 

Static Public Member Functions

static bool IsNull (UIDropdownField uiDropdownField)
 Checks if a UI element is assigned to a UITextField.
 

Properties

UnityEngine.UI.Dropdown uiDropdown [get, set]
 The UI.Dropdown assigned to this UI dropdown field.
 
int value [get, set]
 The text content of the UI.Text or TextMeshProUGUI.
 
bool enabled [get, set]
 
GameObject gameObject [get]
 
bool isActiveSelf [get]
 
bool activeInHierarchy [get]
 

Detailed Description

A UIDropdownField can refer to a UI.Dropdown or TMPro.TMP_Dropdown.

Constructor & Destructor Documentation

◆ UIDropdownField() [1/2]

PixelCrushers.UIDropdownField.UIDropdownField ( )
inline

◆ UIDropdownField() [2/2]

PixelCrushers.UIDropdownField.UIDropdownField ( UnityEngine::UI::Dropdown  uiDropdown)
inline

Member Function Documentation

◆ AddOption()

void PixelCrushers.UIDropdownField.AddOption ( string  text)
inline

◆ ClearOptions()

void PixelCrushers.UIDropdownField.ClearOptions ( )
inline

◆ IsNull()

static bool PixelCrushers.UIDropdownField.IsNull ( UIDropdownField  uiDropdownField)
inlinestatic

Checks if a UI element is assigned to a UITextField.

Parameters
uiTextFieldUITextField to check.
Returns
true if no UI element is assigned; otherwise false.

◆ SetActive()

void PixelCrushers.UIDropdownField.SetActive ( bool  value)
inline

Property Documentation

◆ activeInHierarchy

bool PixelCrushers.UIDropdownField.activeInHierarchy
get

◆ enabled

bool PixelCrushers.UIDropdownField.enabled
getset

◆ gameObject

GameObject PixelCrushers.UIDropdownField.gameObject
get

◆ isActiveSelf

bool PixelCrushers.UIDropdownField.isActiveSelf
get

◆ uiDropdown

UnityEngine.UI.Dropdown PixelCrushers.UIDropdownField.uiDropdown
getset

The UI.Dropdown assigned to this UI dropdown field.

◆ value

int PixelCrushers.UIDropdownField.value
getset

The text content of the UI.Text or TextMeshProUGUI.


The documentation for this class was generated from the following file: