I would like to show a popup when user clicks mouse button in editor scene view. This would be for an editor script and code is currently running in my editor window class which is an EditorWindow.
Example: user clicks some world coordinate in scene view (imagine it is a tile at 3,4 for example), I would then like to show a popup next to mouse cursor where I show items in that tile. When user clicks a choice (picks an item from the list) popup goes away.
I know I can do stuff in editor scene view by adding a delegate to SceneView.onSceneGUIDelegate and there is PopupWindow and EditorGUI.Popup, but I haven’t yet found any posts / articles about if it is possible to create such a popup in scene view using these.
Is this possible? Any help is appreciated - thanks!
But because I also wanted to create a popup list in the SceneView with a completely custom look I used UnityEditor.PopupWindow to implement my own drawing for each row. The code is open source at: Nementic Selection Utility, see SelectionPopup in particular.