# GetLayerMask(params string[])

> Get a PhysicsMask for the specified layer name(s).

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

## GetLayerMask(string\[])

```csharp
public static PhysicsMask GetLayerMask(params string[] layerNames)
```

### Parameters

**** (\[string\[]]\(https\://learn.microsoft.com/dotnet/api/system.string)): The layer names (case sensitive) to find a combined physics mask for.

### Returns

| Type                                                                                        | Description                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [PhysicsMask](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsmask.md) | The combined physics mask associated with the specified layer names or, if not found, [PhysicsMask.None](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsmask/none.md) will be returned in which case a console warning will also be produced. |
