Renderer 渲染器

Inherits from Component

General functionality for all renderers.


A renderer is what makes an object appear on the screen. For any game object or component its renderer can be accessed trough a renderer property:


using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		renderer.enabled = false;
// make the object invisible!
renderer.enabled = false;

Use this class to access the renderer of any object, mesh or particle system. Renderers can be disabled to make objects invisible (see enabled), and the materials can be accessed and modified through them (see material).



Messages Sent发送消息

Inherited members继承成员

Inherited Variables继承变量

Inherited Functions继承函数

Inherited Class Functions继承类函数

Page last updated: 2010-12-15