I'm making a stickman 2D game where I have different sprites for the player.
But when I try to change the Sprite Renderer Color, it only changes few pixels of the sprite and the rest stays black as in the original sprite.
What am I missing?
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityI'm making a stickman 2D game where I have different sprites for the player.
But when I try to change the Sprite Renderer Color, it only changes few pixels of the sprite and the rest stays black as in the original sprite.
What am I missing?
You've mentioned that the rest of your pixels stay black. The way SpriteRenderer.Color is applied is via multiplication. The mentioned color field does not replace the pixel color but "tints" it. So if you have many black pixels in your sprite, they won't be affected because no matter what color you multiply black (0, 0, 0, 1) by it will remain black.