# locked

> Locks the offset and position at rest.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Animations](/engine/6000.0/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public bool locked { get; set; }
```

### Remarks

In Edit mode, unlocks the constraint to update its offsets. In Play mode, the constraint is always locked.
