Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Viewport camera coordinates (x,y,z)?

For every new project I open I find myself going through the 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 the editor that can be turned on to display the current viewport camera's xyz coordinate?

Product Version: Not Selected
more ▼

asked Aug 15 '14 at 03:49 PM in Using UE4

avatar image

506 73 66 97

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey ash22,

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

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

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

There's some more information on Viewport Options here:


Hope that helps!

more ▼

answered Aug 15 '14 at 07:19 PM

avatar image ash22 Aug 16 '14 at 05:49 AM

Thanks Ben. 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 the 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. It would make my stats & debugging DrawText node graphs much simpler/cleaner.

avatar image hausfrau87 Nov 28 '17 at 01:50 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question