Any help porting my old DOTS code to new DOTS version? I get one error.

Hello,

I’ve used DOTS before and my code no longer compiles. Does anyone have recent sample code for DOTS/ECS? I have got to the part of my project where it is required.
The file that threw an error was this file that used to work: https://www.crystalfighter.com/code/code1.txt
Here is the Movement Data: https://www.crystalfighter.com/code/code2.txt
Error thrown was this: https://www.crystalfighter.com/code/err1.txt

\Questions:

  1. Can you make sense of that error to know what I should fix?

  2. Does anyone know of sample code of the very latest ECS/DOTS?

  • The samples are always up to date.

  • I’d advise using SystemBase instead of JobComponentSystem

  • You are using JobComponentSystem, but are using Run() instead of Schedule(), so it is not a job at all

  • If you really want to use Run, do Dependency.Complete() or JobHandle.Complete() before so that the data is sync

  • You should use float3 for your values instead of sets of 3 floats

Awesome!
Thank you.