浏览代码

Add "(i/total)" to shader compile progress

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

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


if (m_DirtyShaders.Any())
{
PropagateNodeSet(m_DirtyShaders);
EditorUtility.DisplayProgressBar("Shader Graph", "Compiling preview shaders", 0f);
EditorUtility.DisplayProgressBar("Shader Graph", string.Format("Compiling preview shaders ({0}/{1})", i, count), 0f);
EditorUtility.DisplayProgressBar("Shader Graph", "Compiling preview shaders", (float)i / count);
EditorUtility.DisplayProgressBar("Shader Graph", string.Format("Compiling preview shaders ({0}/{1})", i, count), 0f);
}
}
finally

正在加载...
取消
保存