Accessing the position of the editor viewport camera

anonymous_user_d6cfdb52
Tue, 28 Oct 2014 11:19:49 +0000
Cinematics & Media

I created a foliage system that uses a basic streaming system depending on the player position. At the moment this only works inside the game but I also want to make it work directly inside the editor (when the game is not running), therefore I need to access the position of the camera in the main viewport and use this for the streaming.

Does anyone know how to get the position of the player in the editor or the position of the camera directly?

And another question also related to editor programming stuff, is there a way to check inside an actor class whether the editor is currently in edit mode or the game is running?

20 posts - 16 participants