docs.unity.cn
    Show / Hide Table of Contents

    Class CameraCaptureBridge

    Bridge class for camera captures.

    Inheritance
    Object
    CameraCaptureBridge
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    Generated by DocFX
    on 08 September 2023