Properties
Static All
All: number = Layers.makeExclusiveMask([Layers.Gizmos, Layers.SceneGizmo, Layers.Editor])
Static Always
Always: number = 1 << 29
Static Default
Default: number = 1 << 30
Static Editor
Editor: number = (1 << 22)
Static Gizmos
Gizmos: number = (1 << 21)
Static IgnoreRaycast
IgnoreRaycast: number = (1 << 20)
Static RaycastMask
RaycastMask: number = Layers.makeExclusiveMask([Layers.Gizmos, Layers.SceneGizmo, Layers.Editor, Layers.IgnoreRaycast])
Static SceneGizmo
SceneGizmo: number = (1 << 24)
Static UI
UI: number = (1 << 23)
Static Private _nextAvailable
_nextAvailable: number = 8
场景节点层管理器,用于射线检测、物理碰撞和用户自定义脚本逻辑。 每个节点可属于一个或多个层,可通过 “包含式” 或 “排除式” 两种检测器进行层检测。