I’m using a script that allows me to load an external .obj at runtime. That strange looking box in the attached image is an object I created to run some tests.
The script I’m using is able to load the .obj with multiple textures (if it has them), as shown in the image.
My question is, what type of component is each ‘material’ that is inside the red boxes I drew.
Are they multiple Mesh Renderes? A single one with multiple materials? Something else entirely?
Second question.
How can I change the one of the materials of the object, in script?