影のようなものを実装できます。
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. GameObject や Component にProjectorのショートカットプロパティは無いので、 GetComponent 関数を使います。
function Start() { // Get the projector var proj : Projector = GetComponent (Projector); // Use it proj.nearClipPlane = 0.5; }
See Also: projector component.
aspectRatio | プロジェクターのアスペクト比を設定する |
farClipPlane | 表示する距離を設定する |
fieldOfView | 表示する広さを設定する |
ignoreLayers | 無視されるレイヤーを設定する |
material | すべてのオブジェクトに投影されるマテリアルを設定する |
nearClipPlane | 表示させ始める距離を設定する |
orthographic | 正射影にするかを設定する |
orthographicSize | 正射影時の大きさを設定する |
orthoGraphicSize | 正射影時の大きさを設定する |
enabled | 有効であれば更新され、無効であれば更新されません。 |
isActiveAndEnabled | Has the Behaviour had enabled called. |
animation | GameObjectにアタッチされたAnimation (アタッチされていない場合はnull) |
audio | GameObjectにアタッチされたAudioSource (アタッチされていない場合はnull) |
camera | GameObjectにアタッチされたCamera (アタッチされていない場合はnull) |
collider | GameObjectにアタッチされたCollider (アタッチされていない場合はnull) |
collider2D | GameObjectにアタッチされたCollider2D |
constantForce | GameObjectにアタッチされたConstantForce (アタッチされていない場合はnull) |
gameObject | このコンポーネントはゲームオブジェクトにアタッチされます。コンポーネントはいつもゲームオブジェクトにアタッチされています。 |
guiText | GameObjectにアタッチされたGUIText (アタッチされていない場合はnull) |
guiTexture | GameObjectにアタッチされたGUITexture (アタッチされていない場合はnull) |
hingeJoint | GameObjectにアタッチされたHingeJoint (アタッチされていない場合はnull) |
light | GameObjectにアタッチされたLight (アタッチされていない場合はnull) |
networkView | GameObjectにアタッチされたNetworkView (アタッチされていない場合はnull) |
particleEmitter | GameObjectにアタッチされたParticleEmitter (アタッチされていない場合はnull) |
particleSystem | GameObjectにアタッチされたParticleSystem (アタッチされていない場合はnull) |
renderer | GameObjectにアタッチされたRenderer (アタッチされていない場合はnull) |
rigidbody | GameObjectにアタッチされたRigidbody (アタッチされていない場合はnull) |
rigidbody2D | GameObjectにアタッチされたRigidbody2D |
tag | ゲームオブジェクトのタグ |
transform | GameObjectにアタッチされたTransform (アタッチされていない場合はnull) |
hideFlags | オブジェクトは非表示、シーンに保存、ユーザーが編集可能などを行うかどうか |
name | オブジェクト名 |
BroadcastMessage | ゲームオブジェクトまたは子オブジェクトにある すべての MonoBehaviour を継承したクラスにある methodName 名のメソッドを呼び出します。 |
CompareTag | Is this game object tagged with /tag/? |
GetComponent | Returns the component of Type type if the game object has one attached, null if it doesn't. |
GetComponentInChildren | Returns the component of Type type in the GameObject or any of its children using depth first search. |
GetComponentInParent | Returns the component of Type type in the GameObject or any of its parents. |
GetComponents | Returns all components of Type type in the GameObject. |
GetComponentsInChildren | Returns all components of Type type in the GameObject or any of its children. |
GetComponentsInParent | Returns all components of Type type in the GameObject or any of its parents. |
SendMessage | Calls the method named methodName on every MonoBehaviour in this game object. |
SendMessageUpwards | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. |
GetInstanceID | Returns the instance id of the object. |
ToString | ゲームオブジェクトの名前を返します |
Destroy | ゲームオブジェクト、コンポーネントやアセットを削除します |
DestroyImmediate | 直ちにオブジェクトを破壊する。ですが、Destroy関数の方を使うことを推奨します |
DontDestroyOnLoad | 新しいシーンを読み込んでもオブジェクトが自動で破壊されないように設定します |
FindObjectOfType | タイプから最初に見つけたアクティブのオブジェクトを返します |
FindObjectsOfType | タイプから見つけた全てのアクティブのオブジェクト配列を返します |
Instantiate | original のオブジェクトをクローンします |
bool | オブジェクトが存在するかどうか |
operator != | 二つのオブジェクトが異なるオブジェクトを参照しているか比較します |
operator == | 二つのオブジェクトが同じオブジェクトを参照しているか比較します |