how to change the material of an onclick object

1

I'm using unity3d, I have a prefab of a sphere and another of a cube, with a simple material, and I'd like to know how I can change the material of those objects by clicking a button on UI .

    
asked by anonymous 02.11.2018 / 15:16

0 answers