OcclusionArea.center

var center : Vector3

Description

Center of the occlusion area relative to the transform.

JavaScript
    // Sets the center of the occlusion area to the center of the transform
@script RequireComponent(OcclusionArea)
transform.GetComponent(OcclusionArea).center = Vector3.zero;