Recompilation erases all gizmos
Steps to reproduce:
- Create GameObject with MonoBehaviourGizmos script
public class Example : MonoBehaviourGizmos {
public override void DrawGizmos () {
using (Draw.InLocalSpace(transform)) {
Draw.WireBox(Vector3.zero, Vector3.one);
}
}
}
- Switch back to Unity Editor window and wait for it to recompile. At this point no gizmos drawn or erased and thats is a problem.
- Switch to Game window
- Switch back and here it is, all gizmos are drawn again
Unity 2020.1.15f
Universal RP 8.2.0
Aline 1.3.1
Mac