コード例 #1
0
        static void DoInject()
        {
            if (EditorApplication.isCompiling || Application.isPlaying)
            {
                Debug.LogError("Injection failed because Unity is compiling or playing!");
                return;
            }

            ILHFInjectorCfg.ReadConfig();
            for (int i = 0; i < ILHFInjectorCfg.AssembliesPathToInject.Count; i++)
            {
                ILHFInjector.Inject(ILHFInjectorCfg.AssembliesPathToInject[i], ILHFInjectorCfg.NameSpacesToInject, ILHFInjectorCfg.MethodsToInject, ILHFInjectorCfg.AsmResolvePath);
            }
            UnityEditorInternal.InternalEditorUtility.RequestScriptReload();
        }
コード例 #2
0
 public static void Configuration()
 {
     _cfgWindow = GetWindow <ILHFInjectorCfg>(true, "IL Inject");
     ReadConfig();
     _cfgWindow.Show();
 }
コード例 #3
0
 static void Configuration()
 {
     ILHFInjectorCfg.Configuration();
 }