- Home /
The type or namespace name 'BurstCompile' could not be found (are you missing a using directive or an assembly reference?)
I have written a job that uses the Burst Compiler. Everything was fine until I moved it into a folder containing an Assembly Definition. At which point, it stopped compiling with a message about the unknown [BurstCompiler]
attribute.
I am using Unity 2019.2.18f
and Burst Compiler 1.2.0 preview-12
.
Does anyone know if Assembly Definitions are supported by Burst? And if so, what you need to do to get them to work?
Answer by tteneder · Mar 10, 2020 at 08:57 PM
You need to ad Unity.Burst to the asmdef's assembly definition references.
Your answer
Follow this Question
Related Questions
Compiler error - wrong target 1 Answer
c# 6 not recognize after project upgrade from 2017 to 2019 version. 0 Answers
Is Unity 2018.1.5f1 compatible with .NET Standard? 0 Answers
C# Getting "Cannot cast from source type to destination type" even though it's working. 1 Answer
UnityIAP? Assembly [...] will not be loaded due to errors: 0 Answers