Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


currentPipeline

Returns the active RenderPipeline.
Read time 1 minuteLast updated 9 days ago

Definition

public static RenderPipeline currentPipeline { get; }

Remarks

The active render pipeline is the render pipeline that Unity is currently using to render your application and parts of the Editor such as the Scene view and Game view. The active render pipeline can be a default value, or you can set override values for different quality levels.
Unity updates this property only after rendering at least one frame with the active render pipeline, which can take up to four calls to Update. This means that this property is
null
on startup, and does not immediately reflect changes to the active render pipeline.
You can access the RenderPipelineAsset that defines the active render pipeline with GraphicsSettings.currentRenderPipeline.
GraphicsSettings.currentRenderPipeline
is always up to date, which means that you can query it on startup or immediately after changing the active render pipeline.