Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Unable to Schedule an IJobFor from an ISystem

$
0
0
Take the following code, below:

Code (CSharp):
  1. [BurstCompile]
  2. public struct TestSystem : ISystem
  3. {
  4.     public void OnCreate(ref SystemState state)
  5.     {
  6.     }
  7.  
  8.     public void OnDestroy(ref SystemState state)
  9.     {
  10.     }
  11.  
  12.     [BurstCompile]
  13.     public void OnUpdate(ref SystemState state)
  14.     {
  15.         TestJob testJob = new TestJob();
  16.  
  17.         state.Dependency = testJob.Schedule(10, state.Dependency);
  18.     }
  19. }
  20.  
  21. [BurstCompile]
  22. public unsafe struct TestJob : IJobFor
  23. {
  24.     public void Execute(int...
Unable to Schedule an IJobFor from an ISystem

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>