Class JobComponentSystem
An abstract class to implement in order to create a system that uses ECS-specific Jobs.
Inherited Members
Namespace: Unity.Entities
Syntax
public abstract class JobComponentSystem : ComponentSystemBase
Remarks
Implement a JobComponentSystem subclass for systems that perform their work using IJobForEach<T0> or IJobChunk.
Properties
Name | Description |
---|---|
Entities | Use Entities.ForEach((ref Translation translation, in Velocity velocity) => { translation.Value += velocity.Value * dt; }).Schedule(inputDependencies); |
Job | Use Job.WithCode(() => { YourCodeGoesHere(); }).Schedule(inputDependencies); |
Methods
Name | Description |
---|---|
OnUpdate(JobHandle) | Implement OnUpdate to perform the major work of this system. |
Update() |