# Viewport camera coordinates (x,y,z)?

**URL:** <https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057>\
**Category:** Cinematics & Media\
**Tags:** coordinates, position, unreal-engine, question\
**Created:** [August 15, 2014, 3:49pm UTC](https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057 "2014-08-15T15:49:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [August 15, 2014, 3:49pm UTC](https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057/1 "2014-08-15T15:49:06Z")

</div>

For every new project I open I find myself going through same process of cutting/pasting a Blueprint template just so I can check my viewport camera’s xyz world position (for debugging purposes).

Is there a basic stats/debug option somewhere in editor that can be turned on to display current viewport camera’s xyz coordinate?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [August 15, 2014, 7:19pm UTC](https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057/2 "2014-08-15T19:19:21Z")

</div>

Hey ,

I’m not currently aware of any way to get world position of Viewport camera. It’s not an Actor, so I don’t think it can be referenced as such through Editor.

You can set Bookmarks, however. Bookmarks remember location and rotation of camera. To create a Bookmark, press Ctrl + a number 1-0. Pressing that number will return camera to that Bookmark.

You can also create a Camera in position of Viewport camera by using Viewports Options dropdown in upper-left corner and selecting Create Camera Here.

There’s some more information on Viewport Options here:

[https://docs.unrealengine.com/latest/INT/Engine/UI/LevelEditor/Viewports/ViewportOptions/index.html](https://docs.unrealengine.com/latest/INT/Engine/UI/LevelEditor/Viewports/ViewportOptions/index.html)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4071fa6e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4071fa6e1](https://forums.unrealengine.com/u/anonymous_user_4071fa6e1)\
**Post date:** [August 16, 2014, 5:49am UTC](https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057/3 "2014-08-16T05:49:08Z")

</div>

Thanks .  
My mistake — when I refer to _camera_ I actually mean player\_controller/character\_controller (character.h). Not sure if that makes a difference to your answer.

Anyway, I think my solution is to put my **DrawText-\>dump.xyz.coords.to.screen** graph template into globally accessible Blueprint library. That way I should be able to conveniently drag it into any project.

It’s a pity that [newlines don’t work in DrawText](https://answers.unrealengine.com/questions/78437/blueprint-drawtext-append-string.html). It would make my stats & debugging DrawText node graphs much simpler/cleaner.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_88d57b37](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_88d57b37](https://forums.unrealengine.com/u/anonymous_user_88d57b37)\
**Post date:** [November 28, 2017, 1:50pm UTC](https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057/4 "2017-11-28T13:50:47Z")

</div>

How F\*CK is it possible that it is so hard to get camera position in unreal?! this is ridiculous !

---

<div class="post-metadata">

**Author:** ![Zaggoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zaggoth/32/876721_2.png) [@Zaggoth](https://forums.unrealengine.com/u/Zaggoth)\
**Post date:** [July 12, 2020, 3:05am UTC](https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057/5 "2020-07-12T03:05:07Z")

</div>

I was looking for an unrelated post but I figured since there was no answer on this, I would throw one in for future people. It’s possible this was added in a more recent version and wasn’t present in 2017, but who knows.

**GetPlayerCameraManager** has all info you need for camera position and more.

You can also **GetPlayerController-\>GetViewTarget** for some additional information, though that will probably grab actor (e.g. Player Pawn)

Hope this helps someone else in future.

---

<div class="post-metadata">

**Author:** ![Mihai.e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mihai.e](https://forums.unrealengine.com/u/Mihai.e)\
**Post date:** [March 18, 2023, 2:44pm UTC](https://forums.unrealengine.com/t/viewport-camera-coordinates-x-y-z/291057/6 "2023-03-18T14:44:58Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/c/c8c19f0d671d454a577ed6f0d9dc0b17603f3369.jpeg)  
This is how you can do it, after you put camera you can take coordonates
