GameObject.light 灯光

var light : Light

Description描述

The Light attached to this GameObject (Read Only). (null if there is none attached)
附属于这个游戏物体上的光(只读)。(如果没有则为空)

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public GameObject other;
	public void Awake() {
		other.light.range = 10;
	}
}
var other : GameObject;
other.light.range = 10;
Page last updated: 2010-12-13