17 lines
394 B
C#
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");
|
|
}
|
|
}
|
|
}
|
|
} |