浏览代码

HDRenderPipeline: Fix error "Destroy may not be called from edit mode!."

/main
Sebastien Lagarde 8 年前
当前提交
8a66d4cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs

2
Assets/ScriptableRenderLoop/HDRenderPipeline/Lighting/TilePass/TilePass.cs


Utilities.Destroy(m_SingleDeferredMaterial);
GameObject.Destroy(s_DefaultAdditionalLightDataGameObject);
Utilities.Destroy(s_DefaultAdditionalLightDataGameObject);
s_DefaultAdditionalLightDataGameObject = null;
s_DefaultAdditionalLightData = null;
}

正在加载...
取消
保存