Is there an API for drawing arbitrary things in the level editor only (ie, not while the game is running)? I know you can draw Gizmos, but this doesn’t quite suit my purposes. For example, is there a way to emulate the way Box Colliders are drawn as green boxes when selected?
1 Answer
1Could you expand on how gizmos are unsuitable? Your example is totally possible using gizmos :
- when selected : Unity - Scripting API: MonoBehaviour.OnDrawGizmosSelected()
- wireframe cube : Unity - Scripting API: Gizmos.DrawWireCube
Oh, that feature is a lot broader than I thought it was. I guess I can do what I want with that. Thanks, sorry for dumb question :P
– ReyanThe Handles class is also useful if you find yourself in the OnSceneGUI of a custom Inspector.
– Loius