> For the complete documentation index, see [llms.txt](https://fast-studios.gitbook.io/press-e/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fast-studios.gitbook.io/press-e/manual/scripting/interactable/interactable.draglocked.md).

# Interactable.DragLocked

<mark style="color:blue;">public bool</mark> <mark style="color:$primary;">canSeeThrowTrajectory</mark>;

This bool is **exclusive to the** [**Drag**](/press-e/manual/components/interactable/drag.md) **interaction type**.\
Use it to **check** whether the object is currently locked. **Do not assign to it directly,** to change the state call `SetDragLocked()`.

```csharp
public void OnlyLockUnlockedObjs(Interactable interactable)
{
    if (interactable.DragLocked == false)
    {
        interactable.SetDragLocked(true);
    }
}
```
