Choices List UGUI
📝 ChoicesListUGUI Class
Feel Speak's choices list display for uGUI.
Namespace:
Esper.FeelSpeak.UI.UGUIInherits from:ChoicesListType:class
📦 Fields
protected
content
GameObject
The GameObject that contains all the content.
public
choicePrefab
ChoiceUGUI
The choice prefab instantiated for each possible choice.
public
choiceContainer
RectTransform
The parent transform of all instantiated choices.
protected
layoutGroup
VerticalLayoutGroup
The choice container layout group.
protected
loadedChoices
List<ChoiceUGUI>
The list of instantiated choices.
🔍 Properties
public
IsOpen
bool
Gets whether the choices list is open.
🧰 Methods
protected
Awake()
void
Initializes the component and gets the layout group reference.
public
Open(ChoiceNode)
void
Opens the choices list with the specified choice node.
public
Hide()
void
Hides the choices list content.
public
Show()
void
Shows the choices list content.
public
MakeChoice(Choice)
void
Makes a choice by starting the choice confirmation coroutine.
protected
MakeChoiceCoroutine(Choice)
IEnumerator
Confirms a choice made after briefly marking it and yields for a small amount of time.
public
Clear()
void
Destroys all instantiated choice UI elements and clears the loaded choices list.
public
RefreshList()
void
Refreshes the choices list by clearing and recreating all choice UI elements.
Last updated