|
hi i was trying to make a random color for each new enemy that has spawned. this is the code
so when i try this r, b, and g are random and that works. but when i play the game and the enemy's come they all look really white.
(comments are locked)
|
|
Color values are from 0..1, not 0..255. cool thanks that works
May 20 '10 at 04:30 PM
3dDude
var myColor = new Color(Random.value, Random.value, Random.value); spark.renderer.material.SetColor("_TintColor", myColor); I tried this, but always get ash color. why it happen so?
Apr 02 at 07:16 AM
sona.viswam
(comments are locked)
|
