Error while doing GetComponent<>() color change

I think i have type correct code but somehow it shows error in unity. I am attaching screen shots.
please give suggestions.
Capture

Isn’t Material supposed to be with a lower m?

1 Like

yes. Thanks Michael.

1 Like

Privacy & Terms