> For the complete documentation index, see [llms.txt](https://tools.continis.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tools.continis.io/hats/workspaces/workspace-rules/hide-or-lock-objects.md).

# Hide or Lock Objects

Use this rule to hide or lock one or more GameObjects in the scene. You can filter by name, tag, or component.

<figure><img src="/files/c5nhcEpmsnWx7XsgTSN6" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
**No scene changes**

Note that hiding is done via [Scene Visibility](https://docs.unity3d.com/Manual/SceneVisibility.html), and locking via [Scene Picking](https://docs.unity3d.com/Manual/ScenePicking.html), and not via the GameObject's active flag. As such, enabling this rule doesn't modify the scene.
{% endhint %}

### On workspace enabled

All the GameObjects in the open scenes found as part of the search are hidden and/or have their picking disabled (locked), depending on the toggles.

### On workspace disabled

All the GameObjects found in the search are set to visible and pickable again.

{% hint style="info" %}
Use the **Hide** and **Disable picking** toggles to choose whether matching objects are hidden, locked, or both.

When filtering by name, the match is exact.
{% endhint %}

{% hint style="warning" %}
**Inactive objects**

If looking for objects by **name** or by **tag**, ensure that the objects you want to be affected are active, as Unity can't find inactive ones this way. If you want to lock or hide inactive objects, filter by **component** instead, which also finds inactive objects.
{% endhint %}
