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.

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.

The scene view camera is read-only.

***edited as I misread the Question due to lack of caffeine ;)

See Eric's answer.

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.