Choice UGUI
✅ ChoiceUGUI Class
A UI object that represents a selectable choice.
Namespace:
Esper.FeelSpeak.UI.UGUIInherits from:MonoBehaviourType:class
📦 Fields
Access
Field
Type
Description
public
button
Button
The button component.
public
label
TextMeshProUGUI
The label that displays the choice text.
public
choice
Choice?
The choice data.
🧰 Methods
Access
Method
Returns
Description
protected
Start()
void
Subscribes to locale change events.
private
OnDestroy()
void
Unsubscribes from locale change events.
public
SetChoice(Choice)
void
Sets the choice data and configures the UI components.
public
Refresh()
void
Updates the UI objects with current choice data.
protected
OnLocaleChanged(UnityEngine.Localization.Locale)
void
Called when the locale changes to refresh the display.
Last updated