GameObjectにアタッチされたRenderer (アタッチされていない場合はnull)
renderer.material.color = Color.red;
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { renderer.material.color = Color.red; } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: renderer.material.color = Color.red