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.

No scene changes
Note that hiding is done via Scene Visibility, and locking via Scene Picking, and not via the GameObject's active flag. As such, enabling this rule doesn't modify the scene.
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.
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.
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.
Last updated