size
Size that the occlusion area will have.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public Vector3 size { get; set; }
Examples
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); }}