Question by
SamA_Cigna · Jan 02, 2019 at 08:44 PM ·
spritecolorspriterendererglitchcolor change
Sprite not properly updating color
I have a sprite where I alter the color to an opaque red via code. Later I use the same GameObject, with the same sprite, and I set it to GetComponent<SpriteRenderer>().color = new Color(1f, 1f, 1f, 1f);
I log the same variable and it shows up properly. But, matching the instance ID using Debug.Log and the Debug inspector, this color has no effect on the sprite. What kind of glitch have I ran into?
Any help would be great.
Comment