U
U
Uncle Bogdan2021-06-30 15:22:37
Unity
Uncle Bogdan, 2021-06-30 15:22:37

What's the deal with flowers?

The color is not white, but for some reason it is white.

60dc6173c074b146777476.png

The code:

Background.color = new Color(11, 72, 207);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NoNameDeveloper, 2021-07-01
@motkot

There is a Color and there is a Color32
For Color the values ​​must be from 0 to 1
For Color32 the values ​​must be from 0 to 255
Color c1 = new Color(.5f, .5f,. 5f);
Color32 c2 = new Color32(11,72,207, 255)

G
GFX Data, 2021-06-30
@ShockWave2048

And if you assign a sprite?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question