Changing the template material

Hello. I have several objects copied from template in my scene. At the start of the game, I upload images, create material, and apply it to one of the instances. How do I apply it to all instances?

 this.bannerLogoPrefab.model.material =[0]

Hi @sergey_ch,

I think on runtime the only thing you can do is to find all of your instances and execute the code you posted, update the material per instance.

The ability to update an instance and apply all changes to all template instances is only available in editor.


Thanks. Understood

1 Like