# SetShowCollisionLayer

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

## Definition

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

## SetShowCollisionLayer(int, bool)

Should the given layer be considered by the display filter.

```csharp
public static void SetShowCollisionLayer(int layer, bool show)
```

### Parameters

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

### Remarks

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

## SetShowCollisionLayer(FilterWorkflow, int, bool)

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 void SetShowCollisionLayer(PhysicsVisualizationSettings.FilterWorkflow filterWorkflow, int layer, bool show)
```

### Parameters

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

### Remarks

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