Version: 2022.3
언어: 한국어

RenderPipelineManager.pipelineSwitchCompleted

매뉴얼로 전환
public static bool pipelineSwitchCompleted ;

설명

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.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961