A class in Root.Township, Alta.QuickAccessActions.
Bubble icon that fires toggle events when its action turns on or off.
Constructors
| Member | What it is |
|---|
QuickAccessDynamicIcon() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private QuickAccessMenuAction action | The action shown. |
private ToggleEvent toggleOnActive | Event given the active state. |
private ToggleEvent toggleOnActiveInverse | Event given the opposite of the active state. |
Methods
| Member | What it is |
|---|
void SetupAction(QuickAccessMenuAction action) | Hooks the action's active event and applies the current state. |
2 private and internal methods
| Member | What it is |
|---|
private void OnDestroy() | Unhooks from the action. |
private void SetActive(bool isActive) | Fires toggleOnActive with the state and toggleOnActiveInverse with its opposite. |