- Home /
Scene View Editor's camera!
hi,
Can i have access to the Scene View Editor's camera by programming?for example i want to move the camera by a button click or by click a button camera shows the (0,0,0)!
so thanks.
Answer by knowtheneo · Nov 24, 2010 at 06:02 PM
Check out this post http://forum.unity3d.com/threads/64920-Moving-scene-view-camera-from-editor-script?highlight=scene+view+camera
It seems to be possible using SceneView.lastActiveSceneView.pivot Although the SceneView class isn't documented.
Answer by Eric5h5 · Aug 15, 2010 at 06:20 PM
The scene view camera is read-only.
Thanks Eric5h5,is it possible that we have access to scene view camera in next versions?
Where can I get the editor's camera? I'd like to use it to position objects.
Answer by Julian-Glenn · Aug 15, 2010 at 05:14 PM
***edited as I misread the Question due to lack of caffeine ;)
See Eric's answer.
Answer by Rodiaz89 · Jun 24, 2015 at 01:33 AM
Here is an asset that saves the current camera view and then you can go back to that specific state, the source code is included so you can check how it works. https://www.assetstore.unity3d.com/en/#!/content/39370