Class SRPSupport
Namespace: Unity.Simulation
Syntax
public class SRPSupport
Properties
instance
Declaration
public static SRPSupport instance { get; protected set; }
Property Value
| Type | Description |
|---|---|
| SRPSupport |
Methods
GetCurrentPipelineRenderingType()
Get Current Rendering Pipeline type.
Declaration
public static RenderingPipelineType GetCurrentPipelineRenderingType()
Returns
| Type | Description |
|---|---|
| RenderingPipelineType | RenderingPipelineType indicating type of current renering pipeline : (URP/HDRP/Built-in) |
QueueCameraRequest(Camera, AsyncRequest<CaptureCamera.CaptureState>)
With different rendering pipelines, the moment when you need to capture a camera migh be different. This method will allow for the CaptureCamera class to operate as normal, while allowing the author of the render pipeline to decide when the work get dispatched.
Declaration
public void QueueCameraRequest(Camera camera, AsyncRequest<CaptureCamera.CaptureState> request)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera | camera | The camera that you wish to queue a request for. |
| AsyncRequest<CaptureCamera.CaptureState> | request | The request you are queueing for this camera. |
UsingCustomRenderPipeline()
Returns true if using a custom render pipeline or false otherwise.
Declaration
public static bool UsingCustomRenderPipeline()
Returns
| Type | Description |
|---|---|
| Boolean | bool |