Component.renderer Manual     Reference     Scripting  
Scripting > Runtime Classes > Component
Component.renderer

var renderer : Renderer

Description

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

JavaScript
renderer.material.color = Color.red;