Version: 2023.1
LanguageEnglish
  • C#

RenderPipelineManager.pipelineSwitchCompleted

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static bool pipelineSwitchCompleted;

Description

Indicate when Render Pipeline switch is in progress.

The value is false if the render pipeline is in the process of being switched. The value is true if the switch has completed and the render pipeline is ready for use.

Unity doesn't switch the render pipeline immediately when you set GraphicsSettings.currentRenderPipeline or QualitySettings.renderPipeline. Unity only initializes a new RenderPipeline instance the first time any Camera renders after you set a new RenderPipelineAsset. You can use this property to check if this has happened and the switch has finished.

You can also subscribe to the RenderPipelineManager.activeRenderPipelineAssetChanged and RenderPipelineManager.activeRenderPipelineTypeChanged callbacks on the RenderPipelineManager if you want to receive a callback instead of using a property.