Version: 2023.2
언어: 한국어
public Vector3 size ;

설명

Size that the occlusion area will have.

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); } }