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).

使用这个类可访问任意物体,网格或粒子系统的渲染器。渲染器可以禁用,使物体不可见(见enabled)。并且材质可以通过它访问和修改(见material)。

Variables变量

Messages Sent发送消息

Inherited members继承成员

Inherited Variables继承变量

Inherited Functions继承函数

Inherited Class Functions继承类函数

Page last updated: 2010-12-15