public bool IsUnityVersionSupported()
{
bool support = true;
try
{
string version = new Regex(@"(\d+\.\d+)\..*").Replace(Application.unityVersion, "$1");
if (new Version(version) < new Version("5.2"))
{
support = false;
}
}
catch
{
Debug.LogWarning("Unable to determine Unity version from: " + Application.unityVersion);
support = false;
}
return support;
}
}