Created
October 23, 2018 14:52
-
-
Save tsubaki/983b7ca9a0b791149609336c11734ef1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.Entities; | |
using Unity.Jobs; | |
using Unity.Collections; | |
public class TestSystem5 : JobComponentSystem | |
{ | |
protected override JobHandle OnUpdate(JobHandle inputDeps) | |
{ | |
return new Process().ScheduleSingle(this, inputDeps); | |
} | |
struct Process : IJobProcessComponentData<SampleData4> | |
{ | |
public void Execute([ReadOnly] ref SampleData4 data) | |
{ | |
Debug.Log("sample5"); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using Unity.Entities; | |
using Unity.Jobs; | |
using Unity.Collections; | |
public class TestSystem6 : JobComponentSystem | |
{ | |
protected override JobHandle OnUpdate(JobHandle inputDeps) | |
{ | |
return new Process().ScheduleSingle(this, inputDeps); | |
} | |
struct Process : IJobProcessComponentData<SampleData4> | |
{ | |
public void Execute([ReadOnly] ref SampleData4 data) | |
{ | |
Debug.Log("sample6"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment