public static void InvokeReflectBinding(ScriptRuntime runtime) { var bm = new BindingManager(Prefs.Load(), new ReflectBindingCallback(runtime)); bm.Collect(); bm.Generate(TypeBindingFlags.None); bm.Report(); }
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 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(LoadPrefs(), new BindingManager.Args { codeGenCallback = new DefaultCodeGenCallback(), bindingLogger = new DefaultBindingLogger(), useLogWriter = true, }); bm.Collect(); bm.Generate(TypeBindingFlags.TypeDefinition); bm.Cleanup(); bm.Report(); AssetDatabase.Refresh(); }