Esempio n. 1
0
        public static void GenerateBindingsWithoutTSD()
        {
            var bm = new BindingManager(Prefs.Load());

            bm.Collect();
            bm.Generate(false);
            bm.Cleanup();
            bm.Report();
            AssetDatabase.Refresh();
        }
Esempio n. 2
0
        public static void GenerateBindings()
        {
            var bm = new BindingManager(Prefs.Load());

            bm.Collect();
            bm.Generate(TypeBindingFlags.Default);
            bm.Cleanup();
            bm.Report();
            AssetDatabase.Refresh();
        }
Esempio n. 3
0
        public static void ClearBindings()
        {
            var prefs = Prefs.Load();
            var kv    = new Dictionary <string, List <string> >();

            foreach (var dir in prefs.cleanupDir)
            {
                var pdir = Prefs.ReplacePathVars(dir);
                kv[pdir] = new List <string>();
            }
            BindingManager.Cleanup(kv, null);
            AssetDatabase.Refresh();
        }