Class InteractableToggleCollection
A way to control a list of radial type buttons or tabs
Inheritance
InteractableToggleCollection
Assembly: cs.temp.dll.dll
public class InteractableToggleCollection : MonoBehaviour
Fields
Declaration
public UnityEvent OnSelectionEvents
Field Value
Type |
Description |
UnityEvent |
|
Properties
The current index in the array of interactable toggles
Declaration
public int CurrentIndex { get; set; }
Property Value
Array of Interactables that will be managed by this controller
Declaration
public Interactable[] ToggleList { get; set; }
Property Value
Methods
Declaration
protected virtual void OnSelection(int index, bool force = false)
Parameters
Set the selection of a an element in the toggle collection based on index.
Index of an element in ToggleList
Force selection set
The manual trigger of the OnClick event. OnClick event is manually triggered
when the CurrentIndex is updated via script or inspector
Declaration
public void SetSelection(int index, bool force = false, bool fireOnClick = false)
Parameters