system
1
I have a complicated scene, and I am trying to debug a particular object by rendering vectors in the GizmoDrawer, the problem is, these objects have very large motions over the course of the game, and I need the editor camera to follow one of my debug objects...
Is there an editor script function to allow this ? Or a relative camera lock to an object ?
In Unity 5 you can also press Shift+F when the gameobject you like to follow is selected in the hierarchy.
If you use Camera.current while in the editor it should refer to the editor camera. It seemed to work for me. I'm surprised nobody else suggested this so maybe I'm missing something though.
http://unity3d.com/support/documentation/ScriptReference/Camera-current.html
efge
2
Take a look at the Camera Control scripts in the Component menu.
Unity 5: Run the game in separate visible view [so you can see both game and scene view], select the object into Scene View, press Shift+v and start playing your game 