Dropdown menu in scene view control bar

How can I do same menu in Unity3D? What should I use?
alt text

First let me ask you the legendary question: [What have you tried?][1] [1]: http://mattgemmell.com/what-have-you-tried/

Scripting Reference.

1 Answer

1

Something like that.

I need button in Scene View control bar. Your solution works for EditorWindow only.

void OnSceneGUI(){} there you can add stuff for the scene view through editor scripts

But OnSceneGUI(){} does'nt work with closed Editor Window

Even without an EditorWindow you can get OnSceneGUI like this: initiate the script somehow with this: http://docs.unity3d.com/Manual/RunningEditorCodeOnLaunch.html SceneView.onSceneGUIDelegate += OnScene; and then you can use: static void OnScene(SceneView sceneView) { Debug.Log("lol"); }

Thanks for that solution!) An what about button in scene view control bar ? How can I draw it ?