Well i am getting this error my here is my code
I downloaded the script from a tutorial video.
When i replace renderer on the 9th line
It gives me another error that says i cant use symbols like those
Well i am getting this error my here is my code
I downloaded the script from a tutorial video.
When i replace renderer on the 9th line
It gives me another error that says i cant use symbols like those
You’re getting the error because UnityEngine.GameObject.renderer
is obsolete like the error message says. To get a reference to the renderer you need to use GetComponent
.
var renderer = GetComonent<Renderer>();
Then you can use the renderer
reference to do what you need.