I have created an GameObject that formed by multiple level modules under a GameObject empty called “Player Ship” like below:
Later, I discovered there is no Mesh Renderer from the custom formed “Player Ship”,
I found some solution from this THREAD, but it only scan the first level of modules, bypassing 2nd and 3rd level of modules.
The Hierarchy for the “Player Ship”, is like below:
Is confirmed that the 2nd and 3rd level of modules like below is not scanned by the foreach() loop, only all the first level modules were detected, excluding its sub modules, Laser and VFX respectively.
Based on picture highlighted above, how to get the sub renderers respectively.
Please advise.