|
|
|
|
|
|
[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() |
|
|
|