Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Why do I get this error while trying to create a color?

$
0
0
float red = .5F; Color32 temp = new Color32(red, 0, 0, 0); The best overloaded method match for `UnityEngine.Color32.Color32(byte, byte, byte, byte)' has some invalid arguments Argument `#1' cannot convert `float' expression to type `byte' from what i see in the documentation, I should be able to pass in a float as an argument of a new color... http://docs.unity3d.com/Documentation/ScriptReference/Color32-ctor.html

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>