InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

新版unity2021 BurstAotCompiler导致注入失败

Open dqIndieGames opened this issue 3 years ago • 2 comments

BurstAotComplier的order为0,这里对dll都注入一下 注意,要修改一下InjectAssembly中注入dll的地址,因为这个dll在Temp中

` public class IFixProcess : IPostBuildPlayerScriptDLLs { public int callbackOrder => 1000;

    public void OnPostBuildPlayerScriptDLLs(BuildReport report)
    {
        UnityEngine.Debug.Log("OnPostBuildPlayerScriptDLLs注入开始,PlayerScriptAssemblies");
        IFixEditor.InjectAllAssemblys();


        UnityEngine.Debug.Log("OnPostBuildPlayerScriptDLLs注入开始,Temp(适配Burst)");
        IFixEditor.customAssembliesFolder = "Temp/StagingArea/Data/Managed";
        IFixEditor.InjectAllAssemblys();
        IFixEditor.customAssembliesFolder = null;

    }
}`

dqIndieGames avatar Sep 25 '22 11:09 dqIndieGames

感谢大佬~

haiyaojing avatar Jan 03 '23 09:01 haiyaojing

2020就需要修改了吧~

linkongchen avatar Jan 17 '23 06:01 linkongchen