Class Constants.Layers
public static class Constants.Layers
- Inheritance
-
Constants.Layers
- Inherited Members
Fields
DefaultLayer
DefaultLayer (Layer 0), used for most GameObjects.
public static readonly LayerMask DefaultLayer
Field Value
- LayerMask
Remarks
NOTE: Does not throw on missing layers — only logs a warning. This allows the editor to partially function with missing layer configuration during development.
Ground
Ground layer, used for terrain and walkable surfaces.
public static readonly LayerMask Ground
Field Value
- LayerMask
Remarks
NOTE: Does not throw on missing layers — only logs a warning. This allows the editor to partially function with missing layer configuration during development.
IgnoreRaycast
Ignore Raycast layer, used for UI and non-interactive objects.
public static readonly LayerMask IgnoreRaycast
Field Value
- LayerMask
Remarks
NOTE: Does not throw on missing layers — only logs a warning. This allows the editor to partially function with missing layer configuration during development.
Obstruction
Obstruction layer mask combining Default and Ground layers, used for line-of-sight and occlusion checks.
public static readonly LayerMask Obstruction
Field Value
- LayerMask
Remarks
NOTE: Does not throw on missing layers — only logs a warning. This allows the editor to partially function with missing layer configuration during development.
Player
Player layer, used for player characters.
public static readonly LayerMask Player
Field Value
- LayerMask
Remarks
NOTE: Does not throw on missing layers — only logs a warning. This allows the editor to partially function with missing layer configuration during development.
Methods
Validate()
Validates that all required layers exist in the project's Tag Manager. Returns a list of missing layer names, or an empty list if all are present. Call during bootstrap to catch misconfigured projects early.
public static List<string> Validate()
Returns
Remarks
NOTE: Does not throw on missing layers — only logs a warning. This allows the editor to partially function with missing layer configuration during development.