private static void CommonForBindingCode(Action <AppDomain, string> callback) { ILRuntimeHotFix.InitInEditor(); ILRuntimeAppEditor app = ILRuntimeAppEditor.GetInstance(); AppDomain domain = AppDomain(); string[] strs = Selection.assetGUIDs; foreach (var item in strs) { string path = AssetDatabase.GUIDToAssetPath(item); callback.Invoke(domain, path); } AssetDatabase.Refresh(); }
public static IAppILRuntime GetAppILRuntime(this ILRuntimeHotFix target) { return(ownerApp); }
public static void ClearGlobal(this ILRuntimeHotFix target) { appDomain = default; methodCacher = default; ownerApp = default; }
public static void SetOwner(this ILRuntimeHotFix target, IAppILRuntime app) { ownerApp = app; }