Version: 2021.3
言語: 日本語
public static Rendering.RenderPipeline currentPipeline ;

説明

Returns the active RenderPipeline.

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.

See Also: How to get, set, and configure the active render pipeline, GraphicsSettings.currentRenderPipeline, GraphicsSettings.defaultRenderPipeline, QualitySettings.renderPipeline, RenderPipelineManager.activeRenderPipelineTypeChanged.

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