Why is [BurstCompile] missing from the docs, missing from code suggestion, and my jobs won't compile dispite not having used [BurstDiscard]. Is there some kind of limitation on what you can tell burst to compile?
#Can't use [BurstCompile] in 6.2 in certain cases?
1 messages · Page 1 of 1 (latest)
You'll want to check the Burst package docs here: https://docs.unity3d.com/Packages/com.unity.burst@1.0/api/Unity.Burst.BurstCompileAttribute.html
The main documentation site shows types that don't come from the package
I am not sure why you aren't seeing the code completion, though
Turns out it was because I was writting code for a separate csproj that compiled into a dll. I think that means you're only able to import the Unity.Burst attributes you need if you're writting an assembly outside of the main unity project?
Either way, it looks like my only option was to keep the burst code inside of the unity project and hook up to it some other way.
You need to reference the Burst assembly
I haven't built DLLs like this before, so I'm not sure what the process is like
yeah I've added reference to all of these but it doesn't seem to work
I think it just doesn't want to compile stuff on built dlls
The DLL is just Unity.Burst.dll