In a scene Multiple different gameobject (almost 30 kinds of gameobject) with parent child relationship. At run time (by selecting on gui button) I want to change the texture of each clicked gameobject. As user click specific gameobject a gui with multiple texture button will appear. By clicking on button that specific texture will be applied.
what is the smarter way??
Do I need to apply script to every object or else?
I have tried to apply script with some specific code it working but not regularly and correclty. further I want different texture option for each kind of gameobject
mesh.material
field of each object clicked on so that they all share the same material instance (and then reuse these materials as best possible). – Draco18s Jan 26 at 21:06