文档

Unity Engine

Unity Engine

light

The Light attached to this GameObject. (Null if there is none attached).
阅读时间1 分钟最后更新于 1 天前

Definition

警告
Removed. Property light has been deprecated. Use GetComponent\<Light\>() instead.
public Component light { get; }

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { GetComponent<Light>().range = 10; }}