docs.unity.cn
    Show / Hide Table of Contents

    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

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.NetCode
    Syntax
    [BurstCompile]
    public struct ApplyInputDataFromBufferJob<TInputComponentData, TInputHelper> : IJobChunk where TInputComponentData : struct, IInputComponentData where TInputHelper : struct, IInputEventHelper<TInputComponentData>
    Type Parameters
    Name Description
    TInputComponentData
    TInputHelper

    Methods

    Execute(in ArchetypeChunk, Int32, Boolean, 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
    Int32 unfilteredChunkIndex
    Boolean useEnabledMask
    v128 chunkEnabledMask
    Implements
    IJobChunk.Execute(in ArchetypeChunk, Int32, Boolean, in v128)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023