-
-
Notifications
You must be signed in to change notification settings - Fork 0
IL_PriorityLayer
Namespace: Lowry.UI.InputLayers
public sealed class IL_PriorityLayer
Used in IL_ScriptableRefs.r_priorities to have layers separated by priority levels. Higher priority levels (later in the list) always take precedent as long as they have IL_ScriptableRefs.r_activeLayer.
This class is used to handle InputLayer priorities.
Priorities represent a group of IL_Layers which will always take precedent over layers stored in a lower priority, regardless of which layer was last activated.
The structure of IL_ScriptableRefs ensures that every IL_Layer must belong to an IL_PriorityLayer.
This class exposes a custom property drawer for the Unity Inspector that is used for the InputLayers editor window.
public int _name;
Used to display in the IL_ScriptableRefs.r_priorities inspector.
public List<IL_Layer> _layers;
The layers contained within this priority.
public readonly StackableList<IL_Layer> _activeLayers;
The layers within this priority which are currently being used.
public bool _hasActiveLayers { get {...} }
Returns:
true
unless _activeLayers is empty.
👉🏻 Download InputLayers on the Unity Asset Store!