Class CameraEditorUtils | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CameraEditorUtils

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

    Properties

    GUITextureBlit2SRGBMaterial

    Declaration
    public static Material GUITextureBlit2SRGBMaterial { get; }
    Property Value
    Type Description
    Material

    Methods

    DrawCameraSceneViewOverlay(Object, SceneView, CameraEditorUtils.GetPreviewCamera)

    Declaration
    public static void DrawCameraSceneViewOverlay(Object target, SceneView sceneView, CameraEditorUtils.GetPreviewCamera previewCameraGetter)
    Parameters
    Type Name Description
    Object target
    SceneView sceneView
    CameraEditorUtils.GetPreviewCamera previewCameraGetter

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

    Declaration
    public static void GetFrustrumPlaneAt(Matrix4x4 clipToWorld, Vector3 viewPosition, float distance, Vector3[] points)
    Parameters
    Type Name Description
    Matrix4x4 clipToWorld
    Vector3 viewPosition
    System.Single distance
    Vector3[] points

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

    Declaration
    public static bool GetFrustum(Camera camera, Vector3[] near, Vector3[] far, out float frustumAspect)
    Parameters
    Type Name Description
    Camera camera
    Vector3[] near
    Vector3[] far
    System.Single frustumAspect
    Returns
    Type Description
    System.Boolean

    GetFrustumAspectRatio(Camera)

    Declaration
    public static float GetFrustumAspectRatio(Camera camera)
    Parameters
    Type Name Description
    Camera camera
    Returns
    Type Description
    System.Single

    GetGameViewAspectRatio()

    Declaration
    public static float GetGameViewAspectRatio()
    Returns
    Type Description
    System.Single

    HandleFrustrum(Camera)

    Declaration
    public static void HandleFrustrum(Camera c)
    Parameters
    Type Name Description
    Camera c

    IsViewPortRectValidToRender(Rect)

    Declaration
    public static bool IsViewPortRectValidToRender(Rect normalizedViewPortRect)
    Parameters
    Type Name Description
    Rect normalizedViewPortRect
    Returns
    Type Description
    System.Boolean

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023