Lock/Hide Objects
Last updated
Last updated
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.
All the GameObjects in the open scenes found as part of the search are locked and/or hidden.
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 GameObject.FindGameObjectsWithTag 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.