Hello,
Is there a way to detect through scripting if one of the selected gameObject in the editor generate a gizmo? And If so, how can I hide it (without deactivating the whole gameObject) ?
I thought about using the C# GetMethod function to detect if the method OnDrawGizmos() is declared… But for whatever reason I can’t get it to work… It always return “null” even when I’m trying to detect generic function such as Destroy().
Any help would be appreciated, thank you.
Since you mentioned about selected game objects generating gizmos, try this: OnDrawGizmosSelected()
I’m developing a plugin that emulate the “localView” of Blender (among other things).
So I want the plugin to be able to detect if a gameObject generates a gizmo, and if it does, it will rewrite the gizmo on the fly (I’ll figure out how later). So modifying OnDrawGIzmosSelected() function manually for every gameObject won’t do the trick.
Thanks for your comment, but your idea doesn’t suit my requirements. Better luck next time 
Any other ideas please ?