Custom viewport navigation
I'm working on an top down game. The best way to edit and work with top down maps would be a function to pan and drag the viewport camera to the part of the map that needs attention, just like dragging the camera in an mobile game. Unfortunately the only way for the editor controls to move on such a xy-plane would be to press the left mouse button and drag forward to dolly and sideways to rotate, but this behavior is not really ideal. So for usability purposes I want to change the default "dolly" behavior and implement a more useful "camera drag" function. I'm sure this can't be done via plugins and requires engine changes, but for me the benefit it provides would outweigh the inconvenience.
So, my question is this, I've dug into the engine a couple times but finding what I'm looking for is still quite difficult. Does anyone know (or have a tip) how I can find the location where viewport camera movement is handled within the editor?
asked Apr 20 '15 at 09:31 PM in C++ Programming
Thank you, I was able to find the code and make some adjustments. For anyone else interested, you have to edit the "EditorViewportClient.cpp" file and replace
That should move the camera in an RTS style. Still wondering if this could be put inside a plugin but it should definitely work for now.
answered Apr 23 '15 at 10:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here