Description
Size that the occlusion area will have
using UnityEngine;
using System.Collections;
[
RequireComponent(typeof(OcclusionArea))]
public class example :
MonoBehaviour {
void Awake() {
transform.GetComponent<OcclusionArea>().size =
new Vector3(10, 20, 30);
}
}
import UnityEngine
import System.Collections
[
RequireComponent(OcclusionArea)]
class example(
MonoBehaviour):
def
Awake():
transform.GetComponent[of OcclusionArea]().size =
Vector3(10, 20, 30)