Lock/Hide Objects by Tag
Last updated
Last updated
All the active GameObjects in the open scenes that posses the specified tag are locked and/or hidden. This rule uses GameObject.FindGameObjectsWithTag.
All the active GameObjects with the specified tag are set to visible and pickable again.
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.
Inactive objects
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 using Lock/Hide Objects by Type rule instead.