Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新版unity2021 BurstAotCompiler导致注入失败 #381

Open
dqIndieGames opened this issue Sep 25, 2022 · 2 comments
Open

新版unity2021 BurstAotCompiler导致注入失败 #381

dqIndieGames opened this issue Sep 25, 2022 · 2 comments

Comments

@dqIndieGames
Copy link

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;

    }
}`
@haiyaojing
Copy link

感谢大佬~

@linkongchen
Copy link

2020就需要修改了吧~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants