Initial commit

This commit is contained in:
Gregory Campbell
2019-09-29 19:40:54 -04:00
commit 463a783c7c
3583 changed files with 101769 additions and 0 deletions
@@ -0,0 +1,20 @@
using System;
using System.Linq;
using UnityEngine;
namespace Packages.Rider.Editor.Util
{
public static class UnityUtils
{
internal static readonly string UnityApplicationVersion = Application.unityVersion;
public static Version UnityVersion
{
get
{
var ver = UnityApplicationVersion.Split(".".ToCharArray()).Take(2).Aggregate((a, b) => a + "." + b);
return new Version(ver);
}
}
}
}