Class MemoryInputSystem<TTag, TBufferToMove>
Abstract base for a system that ticks a NodeSet by calling its Update() in OnUpdate(JobHandle).
If a conjunction of NodeMemoryInput<TTag> and
The system will verify that target node input ports are of type
To provide memory mappings for different node sets in a pipeline, subclass this
system with different concrete types of
Namespace: Unity.DataFlowGraph
Syntax
public abstract class MemoryInputSystem<TTag, TBufferToMove> : JobComponentSystem where TTag : INodeMemoryInputTag where TBufferToMove : struct, IBufferElementData
Type Parameters
Name | Description |
---|---|
TTag | A unique type tag used with NodeMemoryInput<TTag> to define the concrete component type picked up by this system. |
TBufferToMove | An |
Remarks
Remember to call base functions of any functions you override. Any logical errors you make are notified as log errors every frame.
Properties
UnownedSet
Assign a unique set here, which will be updated in OnUpdate(JobHandle). The set will not be disposed or cleaned up, accordingly, care must be taken to ensure that this system is no longer running once external code has disposed the set.
Declaration
protected NodeSet UnownedSet { get; set; }
Property Value
Type | Description |
---|---|
NodeSet |
Methods
OnCreate()
Declaration
protected override void OnCreate()
OnDestroy()
Declaration
protected override void OnDestroy()
OnUpdate(JobHandle)
Declaration
protected override JobHandle OnUpdate(JobHandle inputDeps)
Parameters
Type | Name | Description |
---|---|---|
JobHandle | inputDeps |
Returns
Type | Description |
---|---|
JobHandle |