Game/Library/PackageCache/com.unity.package-manager-ui@2.0.13/Editor/Sources/Services/Common/ApplicationUtil.cs

17 lines
394 B
C#
Raw Normal View History

2021-01-16 18:29:12 +01:00
using System.Linq;
using UnityEngine;
namespace UnityEditor.PackageManager.UI
{
class ApplicationUtil
{
public static bool IsPreReleaseVersion
{
get
{
var lastToken = Application.unityVersion.Split('.').LastOrDefault();
return lastToken.Contains("a") || lastToken.Contains("b");
}
}
}
}