Versions with this page:
Versions without this page:
遮挡区域将具有的大小。
using UnityEngine; using System.Collections;[RequireComponent(typeof(OcclusionArea))] public class ExampleClass : MonoBehaviour { void Example() { transform.GetComponent<OcclusionArea>().size = new Vector3(10, 20, 30); } }