CalculateFrustumCorners

Method

Given viewport coordinates, calculates the view space vectors pointing to the four frustum corners at the specified camera depth. Unity docs

Definition

void CalculateFrustumCorners(Rect viewport, float z, Camera.MonoOrStereoscopicEye eye, Vector3[] outCorners)
void CalculateFrustumCorners(Rect viewport, float z, Camera.MonoOrStereoscopicEye eye, Vector3[] outCorners)

Parameters

ParameterDescription
Rect viewport
float z
MonoOrStereoscopicEye eye
Vector3[] outCorners