Skip to content

IL_PriorityLayer

Eric Lowry edited this page Aug 5, 2023 · 2 revisions

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.

💡General Information

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.

📄Fields

_name

public int _name;

Used to display in the IL_ScriptableRefs.r_priorities inspector.

_layers

public List<IL_Layer> _layers;

The layers contained within this priority.

_activeLayers

public readonly StackableList<IL_Layer> _activeLayers;

The layers within this priority which are currently being used.

📄Properties

_hasActiveLayers

public bool _hasActiveLayers { get {...} }

Returns: true unless _activeLayers is empty.

Clone this wiki locally