first commit

This commit is contained in:
lethanhsonvsp
2025-11-17 15:16:36 +07:00
commit a40d0921eb
17012 changed files with 2652386 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using System.Reflection;
using Codice.LogWrapper;
using PackageManager = UnityEditor.PackageManager;
namespace Unity.PlasticSCM.Editor
{
internal static class UVCPackageVersion
{
internal static string Value { get; private set; }
internal static void Initialize()
{
Assembly assembly = Assembly.GetExecutingAssembly();
Value = FindPackageVersion(assembly);
}
static string FindPackageVersion(Assembly assembly)
{
PackageManager.PackageInfo packageInfo =
PackageManager.PackageInfo.FindForAssembly(assembly);
if (packageInfo == null)
{
mLog.DebugFormat("No package found for {0} (dev env plugin)", assembly);
return "0.0.0";
}
string result = packageInfo.version;
mLog.DebugFormat("Package version: {0}", result);
return result;
}
static readonly ILog mLog = PlasticApp.GetLogger("UVCPackageVersion");
}
}