Instantly share code, notes, and snippets.

Embed
What would you like to do?
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");
}
}
}
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