Upgrading to 2019.3 today, and looking through the Gizmos dropdown, I see what look like tons of method names:
It turns out those aren’t method names, they’re actually class names. They look like method names because they’re simple scripts associated with state machines and AI designers, where the class name describes a simple action.
Anyway, there are hundreds of these in my project, and it’s really lagging out the Gizmos menu when opened. Is there a way to decorate a class to prevent it from being listed in Gizmos?
I don’t think there’s a decoration that will hide a class from this menu. But according to the Unity Manual this menu only contains classes that:
Would it be possible in your project to make sure these classes don’t do any of these things?
That’s helpful information. Unfortunately, all of thee classes are provided by a 3rd party asset named Behavior Designer, and it looks like all the classes filling up the Gizmos dropdown all inherit from a common base class that implements OnDrawGizmos. So that explains why it’s in the menu, but it’s not something I can change. I’ll ping the author of the tool, but I’ll also submit a feedback request to have some way to suppress the gizmo entry in cases like this. Thanks for the help.
1 Like
Also, it turns out that this was actually happening in 2019.1 as well, I just never noticed. I think I noticed it only in 2019.3 because that Gizmos dropdown is very laggy under 2019.3, much more so than 2019.1, and I assumed it was from all of those extra entries. So, this has been the behavior for quite a while.
1 Like