包含此页的版本:
不含此页的版本:
遮挡区域的中心(相对于变换位置)。
using UnityEngine; using System.Collections;[RequireComponent(typeof(OcclusionArea))] public class ExampleClass : MonoBehaviour { void Example() { transform.GetComponent<OcclusionArea>().center = Vector3.zero; } }