Hello there,
I want to classify with a different row the elements of a list in “Mesh Rendered” component.
Can someone give me an example of the script? (I use 2020.3.28f1 version).
Thank you.
Hello there,
I want to classify with a different row the elements of a list in “Mesh Rendered” component.
Can someone give me an example of the script? (I use 2020.3.28f1 version).
Thank you.
Before I even try to untangle what you wrote above, read this so you can use the proper terminology, and perhaps come back and edit your post above:
Unity’s component architecture
It might even answer your question directly, but in the form presented above, your question is not answerable.
Each of those items are Materials (Assets) associated with submeshes within the Mesh of this object.
The order is set at import time, based on what is found in the original file. You may be able to reorder the materials in your 3D editor program (Blender, Maya, etc.). There is no facility to do this in Unity. You could also make your own submesh remapper, although that seems like a sub-optimal solution compared to simply manipulating the material you need.