Skip to content

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

Description

@dqIndieGames

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;

    }
}`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions