Home > Enterprise >  Unity CS1061 Error: Renderer does not contain definition for material
Unity CS1061 Error: Renderer does not contain definition for material

Time:12-15

Used to work fine and after restarting my unity project this was a thing. I am buffled and not sure what could have caused this error, the definition of Renderer contains a material in the Unity doc.

I looked for the error, but it says that CS1061 means missing definition, but that is in contrast to the unity doc and em knowing the code used to not give that problem.

CodePudding user response:

Try using GetComponent<MeshRenderer>() instead.

  • Related