I am having an issue with receiving the error:
InvalidOperationException: The system RemoveTiltRotationSystem writes TiltRotation via RemoveTiltRotationSystem:<>c__DisplayClass_OnUpdate_LambdaJob0 but that type was not assigned to the Dependency property. To ensure correct behavior of other systems, the job or a dependency must be assigned to the Dependency property before returning from the OnUpdate method.
which appeared after some changes, but nothing to do with the tilt rotation system. In the system I have the TiltRotation component as a reference:
Unity does this automatically on Dependency for SystemBase CodeGeneratedJobForEach calls so you don’t have to worry about assigning the Dependency, although doing so is also okay.
I am not sure what was causing it, but toggling off and back on solved it. I suppose it needed to recompile after other changes.
It does it automatically, unless you are passing in a job handle to the foreach - as you are in the OP. As velen pointed out you need to assign back to Dependency in that case. If you find it suddenly working it’s probably a coincidence and some other part of your game is forcing the job to complete before it has to.