Class CameraEditorUtils
Inheritance
CameraEditorUtils
Assembly: UnityEditor.dll
Syntax
public static class CameraEditorUtils
Properties
|
Improve this Doc
View Source
GameViewAspectRatio
Declaration
public static float GameViewAspectRatio { get; }
Property Value
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
|
Improve this Doc
View Source
GetFrustumPlaneAt(Matrix4x4, Vector3, Single, Vector3[])
Declaration
public static void GetFrustumPlaneAt(Matrix4x4 clipToWorld, Vector3 viewPosition, float distance, Vector3[] points)
Parameters
|
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
|
Improve this Doc
View Source
PerspectiveClipToWorld(Matrix4x4, Vector3, Vector3)
Declaration
public static Vector3 PerspectiveClipToWorld(Matrix4x4 clipToWorld, Vector3 viewPositionWS, Vector3 positionCS)
Parameters
Returns
|
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
Returns
|
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
Returns