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

## Definition

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

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