i want to ask about change color render,
if i have some object with texture, my target cannot change the color using this command : " selectedTarget.renderer.material.color = Color.red; "
and it will shown some notification :
“MissingComponentException: There is no ‘Renderer’ attached to the “gomukha@play3” game object, but a script is trying to access it.
You probably need to add a Renderer to the game object “gomukha@play3”. Or your script needs to check if the component is attached before using it.”
how to fix it ?
thank you before