# Temp Unlock

In addition to fully [unlocking a Prefab](https://tools.continis.io/black-box/main-features/locking-prefabs/..#unlocking-a-prefab), you can unlock a Prefab instance *temporarily*. While this can sound very similar, it has a few differences.

<figure><img src="https://3055962393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzOOVmLdEeVhfPmrcckJe%2Fuploads%2Fv5NiHBXeV9TOPGsC4gqg%2FTempUnlock.png?alt=media&#x26;token=453301d5-b3e2-4137-8057-c9ba8f1930f4" alt=""><figcaption></figcaption></figure>

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.

{% hint style="warning" %}
Only one Prefab instance at a time can be temporarily unlocked. Trying to temp unlock other instances will result in re-locking the first one.
{% endhint %}

{% hint style="warning" %}
You cannot temporarily unlock children of a temporarily unlocked Prefab. You can only temp-unlock a root.
{% endhint %}

## Unlocking a Prefab temporarily

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

<figure><img src="https://3055962393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzOOVmLdEeVhfPmrcckJe%2Fuploads%2FZpW0Aq1z3vkeS7zwBWIS%2FLockedPrefab.png?alt=media&#x26;token=87ad05c5-46cd-4f1f-9fbe-59748976ca86" alt="" width="563"><figcaption><p>A locked Prefab displaying the Temp Unlock icon</p></figcaption></figure>

This unlocks the Prefab temporarily, revealing its components and children:

<figure><img src="https://3055962393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzOOVmLdEeVhfPmrcckJe%2Fuploads%2FokBLYwYjFxVhSc11srG1%2FTempUnlockedPrefab.png?alt=media&#x26;token=623d9df3-43d1-4fb6-839f-817c23fe1421" alt="" width="563"><figcaption><p>A Prefab now temporarily unlocked, displaying two of its root components</p></figcaption></figure>

## 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](https://docs.unity3d.com/Manual/ShortcutsManager.html).

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

***

{% hint style="warning" %}
**Note:** Some Prefabs cannot be temporarily unlocked. This can happen if they are already fully unlocked, or if locking has been [disable altogether](https://tools.continis.io/black-box/other/project-settings#disable-locking) in the Project Settings.

When a Prefab cannot be temporarily unlocked it will display an unlocked icon but no button:
{% endhint %}

<figure><img src="https://3055962393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzOOVmLdEeVhfPmrcckJe%2Fuploads%2FBBpoUt2AuQQkG8lRZEBw%2FUnlockedPrefab.png?alt=media&#x26;token=801d34af-4934-4f1a-85f6-d65fd62074e9" alt="" width="563"><figcaption><p>This Prefab cannot be temporarily unlocked</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tools.continis.io/black-box/main-features/locking-prefabs/temp-unlock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
