|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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:
JavaScripts
// make the object invisible!
renderer.enabled = false;
using UnityEngine;
using System.Collections; public class example : MonoBehaviour { void Awake() { renderer.enabled = false; } }
import UnityEngine
import System.Collections class example(MonoBehaviour): def Awake(): 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). See Also: Renderer components for meshes, particles, lines and trails.
Variables
Messages Sent
Inherited members
Inherited Variables
Inherited Functions
Inherited Class Functions
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||