#Can't use [BurstCompile] in 6.2 in certain cases?

1 messages · Page 1 of 1 (latest)

frozen pecan
#

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?

hidden zealot
#

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

frozen pecan
# hidden zealot 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.

hidden zealot
#

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

frozen pecan
#

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

hidden zealot
#

The DLL is just Unity.Burst.dll

frozen pecan
#

Straight up doesn't show up

#

Oh wait here maybe?

#

Oh wait that works

#

Yay!!

#

Ok thanks