# 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.

## Definition

* **Type:** Property
* **Namespace:** [Unity.U2D.Physics](/engine/7000.0/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public bool usePhysicsLayers { get; set; }
```
