Class SRPSupport
Assembly: Unity.Simulation.Capture.dll
Syntax
Properties
URPCameraDepthEnabled
Declaration
public bool URPCameraDepthEnabled { get; }
Property Value
URPRendererFeatureAdded
Declaration
public bool URPRendererFeatureAdded { get; }
Property Value
instance
Declaration
public static SRPSupport instance { get; protected set; }
Property Value
Methods
AddRendererFeatureIfNotPresent(ScriptableRendererFeature)
Declaration
public void AddRendererFeatureIfNotPresent(ScriptableRendererFeature feature)
Parameters
| Type |
Name |
Description |
| ScriptableRendererFeature |
feature |
|
FindRendererFeatureType(Type)
Declaration
public ScriptableRendererFeature FindRendererFeatureType(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
| Type |
Description |
| ScriptableRendererFeature |
|
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)
|
GetScriptableRendererFeatures()
Declaration
public List<ScriptableRendererFeature> GetScriptableRendererFeatures()
Returns
| Type |
Description |
| List<ScriptableRendererFeature> |
|
QueueCameraRequest(Camera, AsyncRequest<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
RemoveRendererFeatureIfPresent(ScriptableRendererFeature)
Declaration
public void RemoveRendererFeatureIfPresent(ScriptableRendererFeature feature)
Parameters
| Type |
Name |
Description |
| ScriptableRendererFeature |
feature |
|
UsingCustomRenderPipeline()
Returns true if using a custom render pipeline or false otherwise.
Declaration
public static bool UsingCustomRenderPipeline()
Returns
| Type |
Description |
| bool |
bool
|