Struct ApplyInputDataFromBufferJob<TInputComponentData, TInputHelper>
Internal job (don't use directly), run inside the prediction loop and copy the input data from an InputBufferData<T> command buffer to an IInputComponentData component for the current simulated tick. The job is responsible to recalculate any InputEvent count, such that any events occurred since last tick (or batch, see also SimulationStepBatchSize) are correctly reported as set (see IsSet
Implements
IJobChunk
Inherited Members
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
[BurstCompile]
public struct ApplyInputDataFromBufferJob<TInputComponentData, TInputHelper> : IJobChunk where TInputComponentData : unmanaged, IInputComponentData where TInputHelper : unmanaged, IInputEventHelper<TInputComponentData>
Type Parameters
Name | Description |
---|---|
TInputComponentData | |
TInputHelper |
Methods
Execute(in ArchetypeChunk, int, bool, in v128)
Copy the command for current server tick to the input component.
Declaration
[BurstCompile]
public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex, bool useEnabledMask, in v128 chunkEnabledMask)
Parameters
Type | Name | Description |
---|---|---|
ArchetypeChunk | chunk | |
int | unfilteredChunkIndex | |
bool | useEnabledMask | |
v128 | chunkEnabledMask |
Implements
Unity.Entities.IJobChunk