Rasagar/Library/PackageCache/com.unity.collab-proxy/Editor/PlasticSCM/VCSPlugin.cs

30 lines
631 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07:00
using UnityEditor;
namespace Unity.PlasticSCM.Editor
{
internal static class VCSPlugin
{
internal static bool IsEnabled()
{
return GetVersionControl() == "PlasticSCM";
}
internal static void Disable()
{
SetVersionControl("Visible Meta Files");
AssetDatabase.SaveAssets();
}
static string GetVersionControl()
{
return VersionControlSettings.mode;
}
static void SetVersionControl(string versionControl)
{
VersionControlSettings.mode = versionControl;
}
}
}