Page 1 of 1

Find unused components

Posted: Tue Jul 26, 2022 7:15 am
by Ats
Hello, I'm currently clearing all the shader tests I've been doing in my project. So I was wondering...
Since ZGE can tell if a component is used or not when suppressing or renaming stuff, could it be possible to have a button that lists or highlight all unused components of the project tree?

Re: Find unused components

Posted: Wed Jul 27, 2022 9:56 am
by VilleK
There is a menu item for this: Tools - Find unused components.

It shows the names of unused components in a message box.

Re: Find unused components

Posted: Thu Jul 28, 2022 9:35 am
by Ats
Hahaha, sorry :lol:

Just one note about that tool: you can't click outside the message box, so it's complicated to suppress components in the list when the project is big.
I ended up opening two ZGameEditor with one listing the unused components, and the other for suppressing them.