- Home /
Question by
FlyingOstriche · Sep 19, 2012 at 11:56 AM ·
editorsceneview
Getting SceneView in Editor as Variable
I'm trying to get the SceneView but all of them return null. Is this Unity Pro or something.
I try to get them in a function called from a button click.
SceneView.currentDrawingSceneView;
SceneView.sceneViews;
SceneView.lastActiveSceneView;
Debug.Log returns null for all of them.
Comment
Well I have Pro and SceneView.lastActiveSceneView is used by me everywhere - but I don't think that it is a pro feature.
Best Answer
Answer by karl_ · Sep 29, 2012 at 10:48 PM
You have to have clicked in a SceneView for these calls to register, or at least that has been my experience.