public static bool CanEnableDataBindSupport() { if (!DataBindInstalled) { return(false); } return(!ScriptingDefineSymbols.Contains(DataBindSupport)); }
public static bool CanEnableTMProSupport() { if (!TMProInstalled) { return(false); } return(!ScriptingDefineSymbols.Contains(TMProSupport)); }
public static void FixAssemblyDefinitions() { if (ScriptingDefineSymbols.Contains(TMProSupport) && !AssemblyDefinitionsEditor.Contains(TMProAssemblies, TMProPackage)) { AssemblyDefinitionsEditor.Add(TMProAssemblies, TMProPackage); ScriptsRecompile.SetStatus("TMPro", ScriptsRecompile.StatusSymbolsAdded); ImportTMProPackage(); } }
public static void DisableTMProSupport() { if (CanDisableTMProSupport()) { ScriptingDefineSymbols.Remove(TMProSupport); AssemblyDefinitionsEditor.Remove(TMProAssemblies, TMProPackage); AssetDatabase.Refresh(); } }
public static void FixAssemblyDefinitions() { if (ScriptingDefineSymbols.Contains(TMProSupport) && !AssemblyDefinitionsEditor.Contains(TMProAssemblies, TMProPackage)) { AssemblyDefinitionsEditor.Add(TMProAssemblies, TMProPackage); // ScriptsRecompile.SetStatus("TMPro", ScriptsRecompile.StatusSymbolsAdded); UnityEditorInternal.InternalEditorUtility.RequestScriptReload(); ImportTMProPackage(); } }
public static void EnableTMProSupport() { if (CanEnableTMProSupport()) { ScriptingDefineSymbols.Add(TMProSupport); AssemblyDefinitionsEditor.Add(TMProAssemblies, TMProPackage); ScriptsRecompile.SetStatus("TMPro", ScriptsRecompile.StatusSymbolsAdded); ImportTMProPackage(); } }
public static void EnableTMProSupport() { if (CanEnableTMProSupport()) { ScriptingDefineSymbols.Add(TMProSupport); AssemblyDefinitionsEditor.Add(TMProAssemblies, TMProPackage); // ScriptsRecompile.SetStatus("TMPro", ScriptsRecompile.StatusSymbolsAdded); UnityEditorInternal.InternalEditorUtility.RequestScriptReload(); ImportTMProPackage(); } }
public static void DisableDataBindSupport() { if (CanDisableDataBindSupport()) { var root = Path.GetDirectoryName(Utilites.GetAssetPath("ScriptsFolder")); var current_path = Utilites.GetAssetPath("DataBindFolder"); var new_path = root + "/Scripts/ThirdPartySupport/" + Path.GetFileName(current_path); if (current_path != new_path) { AssetDatabase.MoveAsset(current_path, new_path); } ScriptingDefineSymbols.Remove(DataBindSupport); } }
public static void EnableDataBindSupport() { if (CanEnableDataBindSupport()) { var root = Path.GetDirectoryName(Utilites.GetAssetPath("ScriptsFolder")); var current_path = Utilites.GetAssetPath("DataBindFolder"); var new_path = root + "/" + Path.GetFileName(current_path); if (current_path != new_path) { AssetDatabase.MoveAsset(current_path, new_path); } ScriptingDefineSymbols.Add(DataBindSupport); ScriptsRecompile.SetStatus("DataBind", ScriptsRecompile.StatusSymbolsAdded); } }
public static bool CanDisableDataBindSupport() { return(ScriptingDefineSymbols.Contains(DataBindSupport)); }
public static bool CanImportTMProPackage() { return(ScriptingDefineSymbols.Contains(TMProSupport)); }
public static bool CanDisableTMProSupport() { return(ScriptingDefineSymbols.Contains(TMProSupport)); }