Script documentation

HorizontalSelector.cs in TinyGiantStudio.Text namespace

If anything except method names starts with a capital letter, it's a property.

Utility

Variables

VariableTypeDescription

text

Modular3DText

focused

bool

interactable

bool

options

List<strings>

Value

int

Currently selected option

valueChangeSoundEffect

AudioClip

audioSource

AudioSource

Methods

MethodDescription

Increase ()

Decrease ()

UpdateText ()

Updates the text to reflect changes in options.

Focus (bool enable)

Events

VariableTypeDescription

onSelectEvent

UnityEvent

onValueChangedEvent

UnityEvent

onValueIncreasedEvent

UnityEvent

onValueDecreasedEvent

UnityEvent

Version History

v4.0.3 (June 2, 2023)

  • bool selected renamed to focus for consistency with the rest of the asset about what it does

Last updated