Skip to main content

QuickAccessDynamicIcon

A class in Root.Township, Alta.QuickAccessActions.

Bubble icon that fires toggle events when its action turns on or off.

Constructors​

MemberWhat it is
QuickAccessDynamicIcon()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

3 private and internal fields
MemberWhat it is
private QuickAccessMenuAction actionThe action shown.
private ToggleEvent toggleOnActiveEvent given the active state.
private ToggleEvent toggleOnActiveInverseEvent given the opposite of the active state.

Methods​

MemberWhat it is
void SetupAction(QuickAccessMenuAction action)Hooks the action's active event and applies the current state.
2 private and internal methods
MemberWhat it is
private void OnDestroy()Unhooks from the action.
private void SetActive(bool isActive)Fires toggleOnActive with the state and toggleOnActiveInverse with its opposite.