> For the complete documentation index, see [llms.txt](https://docs.oserosuite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oserosuite.com/technical-notes/unreal-engine-notes/viewport/get-piloted-viewport-actor.md).

# Get Piloted Viewport Actor

Use the global pointer GCurrentLevelEditingViewportClient, and internally it’s call the **Locked Actor**.

```cpp
GCurrentLevelEditingViewportClient->IsAnyActorLocked();
GCurrentLevelEditingViewportClient->GetActiveActorLock();
```

You can also get whether it’s locked to cinematics:

```cpp
GCurrentLevelEditingViewportClient->IsLockedToCinematic();
```

&#x20;

Examples:

* USH\_WaterfallTool2Statics::SelectActorInViewport
