‎ ‎
On the Asset Store
Hats
Hats
  • Intro
  • Changelog
  • Workspaces
    • Workspaces
    • Switching workspaces
    • Workspace rules
      • Select Folder
      • Highlight Gizmos
      • Open Scenes
      • Scene Camera to Position
      • Load Layout
      • Lock/Hide Objects
      • Disable Menu Item
      • Lock Folders
  • Teams
    • Teams
    • Switching Teams
  • Building on Hats
    • Building Hats-based tools
Powered by GitBook
On this page
  • On workspace enabled
  • On workspace disabled
  1. Workspaces
  2. Workspace rules

Lock/Hide Objects

Last updated 5 months ago

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 , and locking via , 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 locked and/or hidden.

On workspace disabled

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

Inactive objects

If looking for object by tag, ensure that the objects you want to be affected are active, as is not capable of finding inactive ones. If you want to lock or hide inactive objects, you might want to consider looking for objects by name or by component.

GameObject.FindGameObjectsWithTag
Scene Visibility
Scene Picking