- Home /
Question by
Luxe · Apr 30, 2014 at 11:14 AM ·
instantiateclones
I need to change the color of one instantiate object
I need it so that it changes the color of an specific instantiate object that is generated from a prefab. It can only change the color of that one clone not all the clones. Thank You
Comment
Answer by ArkaneX · Apr 30, 2014 at 12:35 PM
If the prefab has a material with color property, then you can use
instantiatedObject.renderer.material.color = new Color(1,0,0);