Move Editor-Camera around using custom inputs.

Hi.

I am not quiet sure how to explain this one but, no pain no gain.

In the editor(NOT AT RUNTIME) you control the camera using some predefined inputs like f, Scroll wheel, alt + left mouse button etc. But is there any way you can control the editor camera with other buttons than the default ones? Like I control the camera using the Xbox controller?

Is there a way to control the editor camera by inputs that you/me define. Something like controlling the editor-camera with the Xbox controller instead of the keyboard.

Thank you.

I haven’t tried, but possibly you could create a GameObject, position it, select it, then execute the Align View to Selected menu item.

You have to uae unsocumented classes, so its not guaranteed to work in the future. Use SceneView.lastActiveSceneView.pivot and .camera. The camera always follows and looks at the pivot, so manipulate this to move it. Manipulate tge camera itself for anything else. Be sure to have a last active sceneview or youll get a nullref.

Removed for spamming.

Please ban this guy.