|
|
|
|
|
|
static public int GetCurrentHDRPProjectVersion() |
|
|
|
{ |
|
|
|
string[] version = new string[1]; |
|
|
|
version[0] = "0"; // Note: When we don't know what a project is, assume worst case 0
|
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
// Don't display warning
|
|
|
|
//Debug.LogWarning("Unable to read from ProjectSettings/HDRPProjectVersion.txt - Assign default version value");
|
|
|
|
|
|
|
|
// When we don't find HDRPProjectVersion file we return the current value. Because this happen when you create new project.
|
|
|
|
return hdrpVersion; |
|
|
|
} |
|
|
|
|
|
|
|
return int.Parse(version[0]); |
|
|
|