# Locked

{% hint style="warning" %}
The behavior of the Locked property is changing for the February 2025 release of Gum as outlined in this issue:\
<https://github.com/vchelaru/Gum/issues/273>

Previous versions allowed locked items to be edited once selected, but they only prevented selection in the Editor tab.
{% endhint %}

### Introduction

The `Locked` property controls whether an instance can be clicked in the Editor tab, and whether any variables can be modified on the locked item.

Locked items appear with a lock icon.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fr4On7MVuFJtnJZb0NJqo%2F21_08%2008%2026.png?alt=media&#x26;token=2dd95598-338a-4558-8ddf-a12925858a04" alt=""><figcaption><p>Locked instance with a lock icon</p></figcaption></figure>

If this value is true, then the following is true:

* Instance cannot be selected in the Editor tab
* Instance variables are all disabled and cannot be edited in the Variables tab (except un-locking the instance)
* Selected instances cannot be moved, resized, or rotated in the Editor tab
* Polygons cannot have points modified, added, or deleted in the Editor tab

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fgit-blob-c0c9bd31738e64e10c29c986c5bb00985013d842%2F05_09%2056%2030.gif?alt=media" alt=""><figcaption><p><code>Locked</code> instances cannot be selected by clicking on them in the editor window</p></figcaption></figure>

{% hint style="info" %}
The `Locked` property does not have any impact on the behavior of Gum objects at runtime, such as when running in FlatRedBall or MonoGame. This property only affects editor behavior.
{% endhint %}
