I am trying to change an objects color through 3 sliders that are red, blue and green. i have a code setup where there is 3 Gui sliders that effect floats:
then lower down in my script i have some code that changes the color like this:
im getting an error saying: Assets/Color_Change.cs(37,67): error CS0119: Expression denotes a
can anyone explain why this error is occurring as i cannot make sense of what the error is meant to tell me.
Add 'new' before color:
Because you did not say 'new', the compiler looks at Color32 as the type instead of a value of a type.
So you where trying to make the type Color32 equal to something.
Where you actually need a variable of type Color32 to equal something.
I hope that made it clear.