Experimental: this API is experimental and might be changed or removed in the future.

IRenderPipelineAsset.DestroyCreatedInstances

切换到手册
public void DestroyCreatedInstances ();

描述

覆盖此方法可销毁渲染管线缓存的状态。

IRenderPipelineAsset 超出范围时、进入或退出游戏模式时和编辑器或应用程序关闭时调用此函数。

在您希望手动强制构建渲染管线时调用此函数。在修改资源管线外部的管线时需要这样做。例如,您可能会创建未使用 SerializedProperties 的自定义 Inspector。在这种情况下,请进行必要的修改,然后调用渲染管线上的 SetAssetDirty 以确保其重建。