All layers in BitMask type
All layers in an Enum
Add a new layer, user can use layers from bit position 0 to 19, other bits are reserved.
Layer's name
Layer's bit position
Remove a layer, user can remove layers from bit position 0 to 19, other bits are reserved.
Layer's bit position
Make a layer mask accepting everything but the listed layers
All excluded layers
A filter which can detect for excluded layers
Make a layer mask accepting nothing but the listed layers
All accepted layers
A filter which can detect all accepted layers
Generated using TypeDoc
Node's layer manager, it's stored as bit mask data in Node.layer. Layer information is widely used in raycast, physics and user logic. Every node can be assigned to multiple layers with different bit masks, you can setup layer with inclusive or exclusive operation.