# GetShowCollisionLayer

> Should the given layer be considered by the display filter.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

## GetShowCollisionLayer(int)

Should the given layer be considered by the display filter.

```csharp
public static bool GetShowCollisionLayer(int layer)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

[Layers](/engine/6000.0/manual/working-with-gameobjects/layers.md).

## GetShowCollisionLayer(FilterWorkflow, int)

Should the given layer be considered by the display filter.

> **Warning:**
>
> **Removed.** Enum PhysicsVisualizationSettings.FilterWorkflow has been deprecated. Use APIs without this argument instead

```csharp
public static bool GetShowCollisionLayer(PhysicsVisualizationSettings.FilterWorkflow filterWorkflow, int layer)
```

### Parameters

**** (\[FilterWorkflow]\(/engine/6000.0/script-reference/unityeditor/physicsvisualizationsettings/filterworkflow)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

[Layers](/engine/6000.0/manual/working-with-gameobjects/layers.md).
