Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm looking into prototyping a game in Unity which will consist of solid square sprites / tiles. I figure I can represent different types of objects with different colors for each of the tiles in the game.

I figure that I can import a single square sprite and shade it appropriately in Unity as opposed to imported squares of many different colors.

My experience with adjusting the hue and saturation within Photoshop shows that white is not an easy color to change as things that are white often stay white. My testing in Unity shows that I can change the "color" of a sprite to anything other than white and the sprite is seemingly shaded appropriately, despite what I would have thought given my Photoshop experience.

Since white objects do seem to take on the appropriate color shading when changed within Unity my gut tells me that this is the best base color to begin with, meaning that I can import a single white square sprite and simply adjust the color to represent different objects and object states.

Is a white sprite actually the best color sprite to begin with and why does something like this work in Unity as opposed to adjusting the hue and saturation within Photoshop?

enter image description here

share|improve this question

1 Answer 1

up vote 6 down vote accepted

White is the best base color for true representation. Also keeping your sprite grayscale can make for some easy color adjustments for teams, etc.

Unity applies a Multiply blend mode to the sprite texture and color.

Unity's Color type is ranged from 0 to 1 inclusive.

Color.White is equal to (1, 1, 1, 1).

Knowing that 1 times anything is itself.

If the grayscale texture is blended with the Sprite Renderer Color field, each pixel is itself. Changing this field will simply multiply each uniform grayscale value by each component of the color.

Tinting some a sprite


You can play with the Multiply blend mode in your favorite image editor like Photoshop or GIMP.

Photoshop Setup

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.