public static void GenerateBindingsAndTypeDefinition() { var bm = new BindingManager(Prefs.Load(), new DefaultBindingCallback()); bm.Collect(); bm.Generate(TypeBindingFlags.Default); bm.Cleanup(); bm.Report(); AssetDatabase.Refresh(); }
public static void GenerateTypeDefinition() { var bm = new BindingManager(Prefs.Load()); bm.Collect(); bm.Generate(TypeBindingFlags.TypeDefinition); bm.Cleanup(); bm.Report(); AssetDatabase.Refresh(); }
public static void ClearBindings() { var prefs = Prefs.Load(); var kv = new Dictionary <string, List <string> >(); foreach (var dir in prefs.cleanupDir) { var pdir = ReplacePathVars(dir); kv[pdir] = new List <string>(); } BindingManager.Cleanup(kv, null); AssetDatabase.Refresh(); }
public static void GenerateTypeDefinition() { var bm = new BindingManager(LoadPrefs(), new BindingManager.Args { codeGenCallback = new DefaultCodeGenCallback(), bindingLogger = new DefaultBindingLogger(), useLogWriter = true, }); bm.Collect(); bm.Generate(TypeBindingFlags.TypeDefinition); bm.Cleanup(); bm.Report(); AssetDatabase.Refresh(); }