|
I'm trying to create an editor script that can change the scene camera's position. In an OnSceneGUI call I do this :
When I do this, in the log i see this :
however, this does not happen in the next frame, and the log in the next frame shows the exact same log lines (take camera position from X to 0). So it seems like this is getting overwritten somewhere along the line. Is it possible to do something like this?
(comments are locked)
|
|
The scene camera is read-only as far as I know. So scripts such as the F button (focus on active objects) are impossible to implement?
Oct 14 '10 at 03:24 PM
Noam
Unfortunately yes, I think so.
Oct 14 '10 at 03:33 PM
Eric5h5
I've just posted a question related to the scene camera (http://answers.unity3d.com/questions/416008/problem-accessing-the-scene-camera.html). How would you go about querying its transform information? In Unity 4 the "Camera.current" method always returns "null". Even when the game is launched while the scene view is active. Since your question was asked about 3 years ago, I'm hoping things have changed a bit...
Mar 13 at 01:32 PM
Seith
(comments are locked)
|

Did you ever figure out a workaround? I'm looking to set the SceneCamera's position and orientation to those of Camera.main when the player pauses the game in the editor.
Impossible as of now :(