I was attempting to move the editor camera via Editor Utility Widgets, but I couldn’t figure out how to get a reference to the editor camera, or how to have it focus selected objects other than direct user input (similar to how you can press F in the editor to focus the selected actor).
I figured I’d leave some information for other people out there, since I couldn’t find much on what I was trying to do, and I found a solution.
How to do it
You can take advantage of editor console commands, two of them in particular. Just execute a console command with one of the following:
-
camera align - camera align simulates when you press F in the editor, and focuses selected actors.
-
bugitgo - bugitgo allows you to move the editor camera to a specific location and rotation. Example: bugitgo 0 0 0 0 0 0 would move the camera to world position 0, 0, 0 with rotation 0, 0, 0
Hope it helps someone