public static void FixAssemblyDefinitions()
 {
     if (ScriptingDefineSymbols.Contains(TMProSupport) && !AssemblyDefinitionsEditor.Contains(TMProAssemblies, TMProPackage))
     {
         AssemblyDefinitionsEditor.Add(TMProAssemblies, TMProPackage);
         ScriptsRecompile.SetStatus("TMPro", ScriptsRecompile.StatusSymbolsAdded);
         ImportTMProPackage();
     }
 }
Ejemplo n.º 2
0
        public static void EnableTMProSupport()
        {
            if (CanEnableTMProSupport())
            {
                ScriptingDefineSymbols.Add(TMProSupport);
                AssemblyDefinitionsEditor.Add(TMProAssemblies, TMProPackage);

                ScriptsRecompile.SetStatus("TMPro", ScriptsRecompile.StatusSymbolsAdded);

                ImportTMProPackage();
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
 public static void RecompileTMProSupport()
 {
     ScriptsRecompile.SetStatus("TMPro", ScriptsRecompile.StatusSymbolsAdded);
 }
Ejemplo n.º 5
0
 public static void RecompileDataBindSupport()
 {
     ScriptsRecompile.SetStatus("DataBind", ScriptsRecompile.StatusSymbolsAdded);
 }