浏览代码

Merge pull request #1480 from Unity-Technologies/Fix-issue-with-HDRP-version

changeHDRPVersion to integer and don't display warning
/main
GitHub 7 年前
当前提交
1ea9dac9
共有 1 个文件被更改,包括 6 次插入5 次删除
  1. 11
      com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/HDRPVersion.cs

11
com.unity.render-pipelines.high-definition/HDRP/Editor/Upgraders/HDRPVersion.cs


[InitializeOnLoad]
public class HDRPVersion
{
static public float hdrpVersion = 1.0f;
static public int hdrpVersion = 1;
static public float GetCurrentHDRPProjectVersion()
static public int GetCurrentHDRPProjectVersion()
version[0] = "0.9"; // Note: When we don't know what a project is, assume worst case
version[0] = "0"; // Note: When we don't know what a project is, assume worst case 0
try
{

{
Debug.LogWarning("Unable to read from ProjectSettings/HDRPProjectVersion.txt - Assign default version value");
// Don't display warning
//Debug.LogWarning("Unable to read from ProjectSettings/HDRPProjectVersion.txt - Assign default version value");
return float.Parse(version[0]);
return int.Parse(version[0]);
}
static public void WriteCurrentHDRPProjectVersion()

正在加载...
取消
保存