Take the following code, below:
Unable to Schedule an IJobFor from an ISystem
Code (CSharp):
- [BurstCompile]
- public struct TestSystem : ISystem
- {
- public void OnCreate(ref SystemState state)
- {
- }
- public void OnDestroy(ref SystemState state)
- {
- }
- [BurstCompile]
- public void OnUpdate(ref SystemState state)
- {
- state.Dependency = testJob.Schedule(10, state.Dependency);
- }
- }
- [BurstCompile]
- public unsafe struct TestJob : IJobFor
- {
- public void Execute(int...