docs.unity3d.com
    Show / Hide Table of Contents

    Class CameraCaptureBridge

    Bridge class for camera captures.

    Inheritance
    Object
    CameraCaptureBridge
    Namespace: UnityEngine.Rendering
    Syntax
    public static class CameraCaptureBridge

    Properties

    enabled

    Enable camera capture.

    Declaration
    public static bool enabled { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    AddCaptureAction(Camera, Action<RenderTargetIdentifier, CommandBuffer>)

    Adds actions for camera capture

    Declaration
    public static void AddCaptureAction(Camera camera, Action<RenderTargetIdentifier, CommandBuffer> action)
    Parameters
    Type Name Description
    Camera camera

    The camera to add actions for

    Action<RenderTargetIdentifier, CommandBuffer> action

    The action to add

    GetCaptureActions(Camera)

    Provides the set actions to the renderer to be triggered at the end of the render loop for camera capture

    Declaration
    public static IEnumerator<Action<RenderTargetIdentifier, CommandBuffer>> GetCaptureActions(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera to get actions for

    Returns
    Type Description
    IEnumerator<Action<RenderTargetIdentifier, CommandBuffer>>

    Enumeration of actions

    RemoveCaptureAction(Camera, Action<RenderTargetIdentifier, CommandBuffer>)

    Removes actions for camera capture

    Declaration
    public static void RemoveCaptureAction(Camera camera, Action<RenderTargetIdentifier, CommandBuffer> action)
    Parameters
    Type Name Description
    Camera camera

    The camera to remove actions for

    Action<RenderTargetIdentifier, CommandBuffer> action

    The action to remove

    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