> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tools.continis.io/hats/workspaces/workspace-rules/hide-or-lock-objects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
