usePhysicsLayers
Controls if the physics 64-bit layers are used based upon PhysicsCoreSettings2D.physicsLayerNames or if not, the standard 32-bit layers based upon LayerMask. If a PhysicsCoreSettings2D asset is assigned then the physics layers ( PhysicsCoreSettings2D.physicsLayerNames ) will be used if PhysicsCoreSettings2D.usePhysicsLayers is also active. If no PhysicsCoreSettings2D asset is assigned then the global layers (See LayerMask ) will be used.
読み終わるまでの所要時間 1 分最終更新 22日前
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool usePhysicsLayers { get; set; }