I’m setting up some colors using unity’s built in color picker in the inspector by defining a Color object in c# script. i.e.
public Color buttonBGColor;
And I’d like to use this to change a objects color component, such as:
buttonBGSprite.color = new Color(0.77f, 0.45f, 0.32f);
However, using how I thought you would phrase this does not work
buttonBGSprite.color = buttonBGColor;
What is the proper formatting for getting a Color from the inspector onto an object?