> 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.interactmode.md).

# Interactable.interactMode

<mark style="color:blue;">public</mark> <mark style="color:$success;">InteractMode</mark> <mark style="color:$primary;">interactMode</mark>;

We **do not recommend** changing this value at runtime (the logic is not designed nor tested for live switching).\
Use it mainly to **check which** [**interaction type**](/press-e/manual/interaction-types.md) an object uses.

```csharp
public void LockOnlyGrabObjects(Interactable interactable)
{
    if (interactable.interactMode == InteractMode.Drag)
    {
        interactable.SetDragLocked(true);
    }
}
```
