top of page

ProMenuMachineScriptableObject

This ScriptableObject allows you to define menu states, so that you can easily switch between them.

Events

CurrentStateChanged

Called whenever the menu state is changed.

Properties

CurrentState

The current menu state.

Methods

SetCurrentState

Sets the menu state.

AddState

Adds a state to the list of possible states.

RemoveState

Removes a state.

ChangeStateName

Changes the name of a state.

StateCount

Returns the current number of menu states.

ReturnStateAtIndex

Returns the name of a state at the given index.

ReturnAllStates

Returns the names of all menu states.

ClearCurrentStateChangedEvent

Clears the state changed event.

ProMonoBehaviour

A class that inherits from MonoBehaviour and implements the IHostable, ILateIntialized and ISaveable interfaces. This class also subscribes to initialization and late initialization by default, but has to be added to save.

bottom of page