Temp Unlock

In addition to fully unlocking a Prefab, you can unlock a Prefab temporarily. While this can sound very similar, it has a few differences.

Temp unlock displays the Prefab as if it were unlocked, without actually modifying its Locked property value. It's a great way to quickly make a few edits to a particular instance in the scene, then go back to locked state.

While a Prefab is temporarily unlocked, you can also operate on any of its children. Selecting another GameObject or asset will result in the Prefab re-locking again.

Unlocking a Prefab temporarily

To unlock a Prefab temporarily, simply click on the lock icon in the Inspector:

A locked Prefab displaying the Temp Unlock icon

This unlocks the Prefab temporarily:

A Prefab now temporarily unlocked, displaying two of its root components

Re-locking

As soon as you focus the selection on another Prefab or GameObject, open another scene or enter Prefab Mode, the temp unlocked Prefab goes back to its locked state.

You can also explicitly re-lock the Prefab by clicking on the Temp Unlock button shown above.

Temp Unlocking using shortcuts

You can temporarily unlock and re-lock a Prefab using the U key shortcut. This shortcut can be modified from Unity's Shortcut Manager.

Using a shortcut is a great way to re-lock a Prefab from one of its children.


This Prefab cannot be temporarily unlocked

Last updated