Projector
Inherits from Behaviour
A script interface for a projector component.
The Projector can be used to project any material onto the scene - just like a real world projector.
The properties exposed by this class are an exact match for the values in the Projector's inspector.
It can be used to implement blob or projected shadows. You could also project an animated texture or
a render texture that films another part of the scene. The projector will render all objects in
its view frustum with the provided material.
There is no shortcut property in GameObject or Component to access the Projector, so you must
use GetComponent to do it:
function Start() { var proj : Projector = GetComponent (Projector); proj.nearClipPlane = 0.5; }
using UnityEngine; using System.Collections;
public class example : MonoBehaviour { void Start() { Projector proj = GetComponent<Projector>(); proj.nearClipPlane = 0.5F; } }
import UnityEngine import System.Collections
class example(MonoBehaviour):
def Start(): proj as Projector = GetComponent[of Projector]() proj.nearClipPlane = 0.5F
See Also: projector component.
Variables
Inherited members
Inherited Variables
Inherited Functions
Inherited Class Functions
|
operator bool |
Does the object exist?
|
|
Instantiate |
Clones the object original and returns the clone.
|
|
Destroy |
Removes a gameobject, component or asset.
|
|
DestroyImmediate |
Destroys the object obj immediately. It is strongly recommended to use Destroy instead.
|
|
FindObjectsOfType |
Returns a list of all active loaded objects of Type type.
|
|
FindObjectOfType |
Returns the first active loaded object of Type type.
|
|
operator == |
Compares if two objects refer to the same
|
|
operator != |
Compares if two objects refer to a different object
|
|
DontDestroyOnLoad |
Makes the object target not be destroyed automatically when loading a new scene.
|
|