Show / Hide Table of Contents

Class CameraEditorUtils

Inheritance
Object
CameraEditorUtils
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
public static class CameraEditorUtils

Properties

| Improve this Doc View Source

GameViewAspectRatio

Declaration
public static float GameViewAspectRatio { get; }
Property Value
Type Description
Single

Methods

| Improve this Doc View Source

DrawFrustumGizmo(Camera)

Declaration
public static void DrawFrustumGizmo(Camera camera)
Parameters
Type Name Description
Camera camera
| Improve this Doc View Source

GetFrustumAspectRatio(Camera)

Declaration
public static float GetFrustumAspectRatio(Camera camera)
Parameters
Type Name Description
Camera camera
Returns
Type Description
Single
| Improve this Doc View Source

GetFrustumPlaneAt(Matrix4x4, Vector3, Single, Vector3[])

Declaration
public static void GetFrustumPlaneAt(Matrix4x4 clipToWorld, Vector3 viewPosition, float distance, Vector3[] points)
Parameters
Type Name Description
Matrix4x4 clipToWorld
Vector3 viewPosition
Single distance
Vector3[] points
| Improve this Doc View Source

HandleFrustum(Camera, Int32)

Declaration
public static void HandleFrustum(Camera c, int cameraEditorTargetIndex)
Parameters
Type Name Description
Camera c
Int32 cameraEditorTargetIndex
| Improve this Doc View Source

IsViewportRectValidToRender(Rect)

Declaration
public static bool IsViewportRectValidToRender(Rect normalizedViewPortRect)
Parameters
Type Name Description
Rect normalizedViewPortRect
Returns
Type Description
Boolean
| Improve this Doc View Source

PerspectiveClipToWorld(Matrix4x4, Vector3, Vector3)

Declaration
public static Vector3 PerspectiveClipToWorld(Matrix4x4 clipToWorld, Vector3 viewPositionWS, Vector3 positionCS)
Parameters
Type Name Description
Matrix4x4 clipToWorld
Vector3 viewPositionWS
Vector3 positionCS
Returns
Type Description
Vector3
| Improve this Doc View Source

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

Declaration
public static bool TryGetFrustum(Camera camera, Vector3[] near, Vector3[] far, out float frustumAspect)
Parameters
Type Name Description
Camera camera
Vector3[] near
Vector3[] far
Single frustumAspect
Returns
Type Description
Boolean
| Improve this Doc View Source

TryGetSensorGateFrustum(Camera, Vector3[], Vector3[], out Single)

Declaration
public static bool TryGetSensorGateFrustum(Camera camera, Vector3[] near, Vector3[] far, out float frustumAspect)
Parameters
Type Name Description
Camera camera
Vector3[] near
Vector3[] far
Single frustumAspect
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Generated by DocFX