浏览代码

Revert use of internal method

/main
Peter Bay Bastian 7 年前
当前提交
f9685e94
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/MaterialGraphAsset.cs

4
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/MaterialGraphAsset.cs


{
public static bool ShaderHasError(Shader shader)
{
return ShaderUtil.GetShaderErrorCount(shader) > 0;
var hasErrorsCall = typeof(ShaderUtil).GetMethod("GetShaderErrorCount", BindingFlags.Static | BindingFlags.NonPublic);
var result = hasErrorsCall.Invoke(null, new object[] { shader });
return (int)result != 0;
}
}
}
正在加载...
取消
保存