- Home /
Is it possible to include AOT compiled Unity Jobs in libraries?
Hello,
For complicated reasons, we are building .unitypackages with the pre-compiled DLLs for some of our components (making use of post-build events to replace code with the compiled DLL containing the code).
But now we have run into a slight snag. We have components (ordinary monobehaviours) that makes use of the Unity Jobs system for some large data processing tasks, which are of course burst compiled AOT into a native DLL from what I can see.
Am I right in the (maybe obvious to some) assumption that if we put the jobs, and the behaviours using them, inside an assembly by using asmdef files, the "client" using that DLL will not get the benefit of the burst compilation? I.e. the burst compiler will not take [BurstCompile] annotated IL code inside the assembly and burst compile it? Or should that work?
Is there another good way of doing libraries with pre-built behaviours and burst compiled code?
Your answer
![](https://koobas.hobune.stream/wayback/20220613033358im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Editor reloading assemblies and building asset bundles 0 Answers
How to reset build scenes after running unit tests? 1 Answer
How to put script assemblies into asset bundles and preserve public values? 1 Answer
Proper way to create Unity Assemblies for Shared Projects 0 Answers
Use assembly class directly without the assembly object? 0 Answers