-
-
Notifications
You must be signed in to change notification settings - Fork 0
IL_Action
Namespace: Lowry.UI.InputLayers
public struct IL_Action
Used to reference an InputAction🔗 from the IL_ScriptableRefs.r_actionsAssets (of type InputActionAsset🔗) using a custom inspector.
This structure is mainly for internal use, and it is unlikely that you will need to work with it directly.
Its main goal is to expose a custom property drawer for the Unity Inspector that can point to any InputAction🔗 you have configured within an InputActionAsset🔗 registered in the "Actions Assets" parameter field of the InputLayers editor window.
This is a core component of the LayeredAction system.
public int mapId;
Stores the position of the target actionId's InputActionMap🔗 parent within the InputActionAsset🔗.actionMaps🔗 list.
public int actionId;
Stores the position of the target InputAction🔗 within the map's InputActionMap🔗.asset🔗 list.
internal InputActionMap map { get {...} }
The InputActionMap🔗 this action belongs to.
internal InputAction action { get {...} }
The InputAction🔗 this struct represents.
internal bool mapEnabled { get {...} }
true
if map is enabled.
internal bool enabled { get {...} }
true
if action is enabled.
internal void Enable () {...}
Enables the InputAction🔗 this struct represents.
internal void Disable () {...}
Disables the InputAction🔗 this struct represents.
private InputActionMap GetActionMap () {...}
For use in the map getter.
Returns: The InputActionMap🔗 this action belongs to.
👉🏻 Download InputLayers on the Unity Asset Store!