Game/Library/PackageCache/com.unity.package-manager-ui@2.0.13/Editor/Sources/Services/Common/ApplicationUtil.cs
2021-01-16 18:29:12 +01:00

17 lines
394 B
C#

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");
}
}
}
}