# Accessing the position of the editor viewport camera

**URL:** <https://forums.unrealengine.com/t/accessing-the-position-of-the-editor-viewport-camera/297487>\
**Category:** Cinematics & Media\
**Tags:** position, running, unreal-engine, editor, question\
**Created:** [October 28, 2014, 11:19am UTC](https://forums.unrealengine.com/t/accessing-the-position-of-the-editor-viewport-camera/297487 "2014-10-28T11:19:49Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![zompi2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zompi2/32/937524_2.png) [@zompi2](https://forums.unrealengine.com/u/zompi2)\
**Post date:** [February 5, 2023, 1:16pm UTC](https://forums.unrealengine.com/t/accessing-the-position-of-the-editor-viewport-camera/297487/7 "2023-02-05T13:16:25Z")

</div>

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 🙂

> [@\[Plugin\] Editor Camera Position](https://forums.unrealengine.com/t/plugin-editor-camera-position/764078):
>
> Nobody asked for this, but here’s a little plugin that shows a camera position in the editor viewport. You can also set the camera position, or copy-paste it. [ezgif.com-gif-maker] Enjoy, and cheers \<3

The actual code checking the stuff is

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

		viewPos = ViewTransform.GetLocation();
}

```

---

_[View the full topic](https://forums.unrealengine.com/t/accessing-the-position-of-the-editor-viewport-camera/297487)._
