기술 자료

Unity Engine

Unity Engine

TryGetFrustum(Camera, Vector3[], Vector3[], out float)

Calculate the frustrum corners. Corners are calculated in this order: left bottom, left top, right top, right bottom.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

TryGetFrustum(Camera, Vector3[], Vector3[], float)

public static bool TryGetFrustum(Camera camera, Vector3[] near, Vector3[] far, out float frustumAspect)

Parameters

camera

Camera to use.

The corners of the near plane. (A minimum size of 4 elements is required.)

The corners of the far plane. (A minimum size of 4 elements is required.)

frustumAspect

The aspect ratio of the frustrum.

Returns

Type

Description

boolWhether the frustrum was calculated.