usePhysicsLayers
Controls if the physics 64-bit layers are used based upon _physicsLayerNames or if not, the standard 32-bit layers based upon LayerMask. If a PhysicsCoreSettings2D asset is assigned then the physics layers ( _physicsLayerNames ) will be used if _usePhysicsLayers is also active. If no PhysicsCoreSettings2D asset is assigned then the global layers (See LayerMask ) will be used.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Property
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public bool usePhysicsLayers { get; set; }