This version of Unity is unsupported.
Removed

Component.renderer

Obsolete Property renderer has been deprecated. Use GetComponent<Renderer>() instead. public Component renderer;

Description

The Renderer attached to this GameObject. (Null if there is none attached).