UnityEngine.VR.WSA.SurfaceObserver.SetVolumeAsFrustum C# (CSharp) Method

SetVolumeAsFrustum() public method

This method sets the observation volume as a frustum at the requested location. Successive calls can be used to reshape the observation volume and/or to move it in the scene as needed.

public SetVolumeAsFrustum ( Plane planes ) : void
planes UnityEngine.Plane Planes defining the frustum as returned from GeometryUtility.CalculateFrustumPlanes.
return void
        public void SetVolumeAsFrustum(Plane[] planes)
        {
            if (planes == null)
            {
                throw new ArgumentNullException("planes");
            }
            if (planes.Length != 6)
            {
                throw new ArgumentException("Planes array must be 6 items long", "planes");
            }
            this.Internal_SetVolumeAsFrustum(this.m_Observer, planes);
        }