docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CameraEditorUtils

    Utility functions for cameras in the editor.

    Inheritance
    object
    CameraEditorUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public static class CameraEditorUtils

    Properties

    GUITextureBlit2SRGBMaterial

    The material used to display a texture into SRGB

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

    Methods

    DrawCameraSceneViewOverlay(Object, SceneView, GetPreviewCamera)

    Draw the overlay of a Camera

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

    The Camera that we want a preview

    SceneView sceneView

    The scene view where to draw it

    CameraEditorUtils.GetPreviewCamera previewCameraGetter

    The way to get the preview camera corresponding to the target

    IsViewPortRectValidToRender(Rect)

    Check if the view port rect have a positive size

    Declaration
    public static bool IsViewPortRectValidToRender(Rect normalizedViewPortRect)
    Parameters
    Type Name Description
    Rect normalizedViewPortRect

    The rect to check

    Returns
    Type Description
    bool

    True: the rect have positive size

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)