Accessing the position of the editor viewport camera

Digging out an old topic, but I made a plugin that shows the camera position inside a Level Viewport. It can also set this position to a desire location :slight_smile:

The actual code checking the stuff is

if (GCurrentLevelEditingViewportClient)
{
		FViewportCameraTransform& ViewTransform = GCurrentLevelEditingViewportClient->GetViewTransform();

		viewPos = ViewTransform.GetLocation();
}
1 Like