Version: 2019.4
public Vector3 size ;

説明

サイズを設定する

using UnityEngine;

[RequireComponent(typeof(OcclusionArea))] public class Example : MonoBehaviour { // Sets an Occlusion area of 10 units in x, 20 units in y and 30 units in z void Start() { transform.GetComponent<OcclusionArea>().size = new Vector3(10, 20, 30); } }