Steps to reproduce:
1. Open the “IN-19720_BurstError-2” project
2. Enable Burst Compilation (Jobs → Burst → Enable Compilation)
3. Observe the Console
Expected result: Compiled successfully
Actual result: Error “Burst error BC1355: Expected to find an unmanaged version of method UnityEngine.Profiling.Profiler.BeginSampleImpl(System.String name, UnityEngine.Object targetObject), but no such method could be found” is thrown
Reproducible with: 1.7.3 (2022.2.0b15, 2023.1.0a18)
Not reproducible with: 1.8.1 (2022.2.0b15, 2023.1.0a18)
Coult not test with: 2020.3.41f1, 2021.3.13f1, 2022.1.23f1 (Package errors)
Reproduced on: macOS Monterey 12.5.1 (Intel)
Note:
With Burst 1.8.1 different errors are thrown:
2022.2.0b15 - “InvalidOperationException: Burst failed to compile the function pointer `Void _codegen_OnUpdate(IntPtr, IntPtr)`”
2023.1.0a18 - “Burst error BC1016: The managed function Unity.Entities.SystemState.get_World(Unity.Entities.SystemState* this) is not supported"