Controlling OnDrawGizmo

I’m trying to selectively draw an icon in OnDrawGizmos based on the value of a public enum, so the user (me) can change the value and have it draw a different icon.

Is this possible, because right now I have a switch statement doing the conditional, and every time I change the enum value, it draws the icon for the current selection AND every previous selection, and never clears, even across restarts.

void OnDrawGizmos() { switch (someClassEnumVar) { case 1: Gizmo.DrawIcon("blah.png"); break; case 2: Gizmo.DrawIcon("moo.png"); break; } }

I had extra icon in the gizmo’s icon drop down, hence the double display :confused: