I'm probably screwing something up somewhere...
I need to read a managed component so I'm using SystemAPI.ManagedAPI, however I also want to use the Burst Compiler in the rest of the code so something like this:
[BurstCompile]
public void OnUpdate(ref SystemState state)
{
NativeList<E> E = new(Allocator.TempJob);
method(ref E)
//schedule job with new values
}
[BurstDiscard]
private void method(ref NativeList<E> E)
{
//add to E with values from managed component
}```
When burst is disabled it works just fine but with Burst the referenced list isn't changed. Am I doing something wrong or do I cut my losses and just not use burst (considering I'm only scheduling a job, performance won't take a big hit. I just want to learn if I can do this in the future)