Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

OcclusionArea.size

Switch to Manual
public Vector3 size;

Description

Size that the occlusion area will have.

using UnityEngine;
using System.Collections;

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