Answers for "how to change rgb color in unity"

C#
2

new Color from hex in unity

Color greenColor;
ColorUtility.TryParseHtmlString("#0AC742", out greenColor);
Posted by: Guest on December-01-2020
0

how to change the color of an object in unity c# rgb

void Update ()
             {                         
               if(Input.GetKeyDown(KeyCode.R))
               {                                 
                 gameObject.GetComponent<Renderer>().material.color = new Color(233, 79, 55);
               }             
             }
Posted by: Guest on August-20-2020

C# Answers by Framework

Browse Popular Code Answers by Language