You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
631 B
C#

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