Changing SpriteRenderer Color of an Object at runtime
Well, im making a game where u can choose the color of a ball at a menu. But when i press the color button it only changes the color if a have the prefab selected at the Editor. On a Mobile i cant select the prefab like that, so the color changing doesnt work. Here is some screenshots of the problem. Any help will be useful. 1-Here i select the green color, but it doesnt work. You can see the color its printed on the console.
Answer by Leolindoso · Jun 15, 2018 at 03:53 AM
2-Here i select the Prefab and do the same thing, and it works.
Your answer
Follow this Question
Related Questions
My code has some invalid arguments 1 Answer
Sprite drawing. 0 Answers
can you control 2 gameobject color values without having to reference both ? 0 Answers
Can I change the background color where a sprite is shown in the inspector? 1 Answer
is there simple way to put random sprite to gameobject multi child with no repating. 1 Answer