Hi everyone, I’m taking a crack at learning editor scripting and can’t seem to find my particular problem anywhere. The goal is to be able to have some text present in the scene view for the tool I’m trying to make. In my example, the text is shown to inform you if you’re in perspective or not. I would like to add more text.
You need a way to hook into the scene view’s GUI callback. You can do this with a custom editor’s Editor.OnSceneGUI method or a scene view’s SceneView.duringSceneGui event (look at the static properties of SceneView for how to get a reference to a scene view).
Then you can use Handles to draw all kinds of stuff, including 3D labels, or use Handles.BeginGUI to use the regular 2D editor immediate-mode GUI functions.
1 Like
