# locked

> Locks the offsets and position (translation and rotation) at rest.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Animations](/engine/6000.5/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.
