浏览代码

Added correct callback to handle the change of shader in our various material editors.

/Yibing-Project-2
Julien Ignace 7 年前
当前提交
e49a48c0
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
      ScriptableRenderPipeline/HDRenderPipeline/Material/Unlit/Editor/BaseUnlitUI.cs

7
ScriptableRenderPipeline/HDRenderPipeline/Material/Unlit/Editor/BaseUnlitUI.cs


}
}
public override void AssignNewShaderToMaterial(Material material, Shader oldShader, Shader newShader)
{
base.AssignNewShaderToMaterial(material, oldShader, newShader);
SetupMaterialKeywordsAndPassInternal(material);
}
// This is call by the inspector
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
{

正在加载...
取消
保存