浏览代码

Log warning with source when shader has error

/main
Peter Bay Bastian 7 年前
当前提交
33e9b11f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/PreviewSystem.cs

3
MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/PreviewSystem.cs


{
ShaderUtil.UpdateShaderAsset(previewData.shader, previewData.shaderString);
}
if (MaterialGraphAsset.ShaderHasError(previewData.shader))
Debug.LogWarningFormat("ShaderHasError: {0}\n{1}", node.GetVariableNameForNode(), previewData.shaderString);
}
void DestroyPreview(Guid nodeGuid, PreviewData previewData)

正在加载...
取消
保存