Version: 2017.1
public Vector3 size ;

描述

遮挡区域将具有的大小。

using UnityEngine;
using System.Collections;

[RequireComponent(typeof(OcclusionArea))] public class ExampleClass : MonoBehaviour { void Example() { transform.GetComponent<OcclusionArea>().size = new Vector3(10, 20, 30); } }