Class CameraCaptureBridge
Bridge class for camera captures.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class CameraCaptureBridge
Properties
enabled
Enable camera capture.
Declaration
public static bool enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
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 |