Hi everyone! Here is images when testing on unity and on android. I use grayscale color for pixel prefab, Color Swatches prefabs are objects Institate with code. Why is there this difference? Hope everybody can help please, thanks a lot. Sorry my english is pretty bad.
Thank you very much! But some pixel objects are black. What's the reason? Here is my code: Code (CSharp): ID = colorID; PixelColor = color; GrayColor = Color.Lerp(new Color(PixelColor.grayscale, PixelColor.grayscale, PixelColor.grayscale), Color.white, 0.6f); SelectColor = Color.Lerp(new Color(PixelColor.grayscale, PixelColor.grayscale, PixelColor.grayscale), Color.white, 0.4f); Text.text = colorID.ToString(); Border.color = Color.black; Background.material.SetColor("_Color", GrayColor); Here is Pixel Prefabs: