For example,
Color C = new color (0xf2, 0xff, 0xff);
is used label.color = c;
Compile without error, open the interface will report the above error. This is because the values of R, G, B and a in the color construction method range from 0 to 1. The value range of color32 construction method is 0 to 255, so it needs to be changed to
Color c = new Color32(0xF2,0xFF,0xFF);
Read More:
- Linux use ls to view the file color is all white solution, and Linux file color introduction
- Android project error Error:found an Invalid color. Solution
- Notes on unity project_ Unity webplayer failed to update unity web player
- Create game scene in unity_ Creating a beat em up game in unity
- Unity bug solution — invalid AABB inaabb
- After unity connects with androidstudio, unity packages APK with an error: commandinvocationfailure: failed to re package resources
- How do I change the default background color of all FIGURE objects created in MATLAB
- Solution of running error reporting attributeerror: ‘rectangle’ object has no property ‘normalized’
- Unity install ilruntime plug-in [novice installation tutorial] (supported by unity2018 and later versions)
- Unity3d open prompt failed to initialize unity graphic
- Unity-failed to update unity web player
- Android EditText cursor control, color modification, show and hide
- 【Unity 3D】Because you are not a member of this project this build will not access Unity services.
- Call unity with lightmap and light probes in shader
- Unity – error reporting encountered in APK package
- Summary of some mistakes in the development of unity ar
- Error in unity URP packaging Android shader
- There is no automatic completion of unity in vs2019
- Animation event has no receiver in unity animation
- Unity development memo 000025: error cs0433: the type ‘task’ exists in both ‘xxx’ and ‘YYY’