How to find out which script is causing/break Buildin gizmo

Hi Everyone,

So in my project I notice that in the editor under gizmo selection for the Built-in components there are bunch of broken items show as MonoBehvaiour as shown in the screenshot below.

I am guessing it must be certain broken or missing script in my project that caused this. However I don’t know which script caused this. And this cause an issue where checkbox for toggle such as boxCollider to no longer shown and so I can no longer toggle off the colliders in my editor.

I am wonder if anyone know how I could search for what is causing this broken MonoBehviour icon in the gizmo section? Or some way to debug this? Right click doesn’t show any options.

Any help would be apprieciated.

Thanks!

I had figure out the issue is related with a plugin that tries to SetGizmoIconEnabled using reflection on Unity internal function, but apprently doing too often or fast will cause a race condition which breaks annotation.

Was able to fix by moving the code into OnAfterAssemblyReload().