docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CopyInputToBufferJob<TInputComponentData, TInputHelper>

    Internal job (don't use directly) used to copy the input data for struct implementing the IInputComponentData to the underlying InputBufferData<T> command data buffer. The job is also responsible to increment the InputEvent counters, in case the input component contains input events.

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

    Input component data

    TInputHelper

    Input helper

    Methods

    Execute(in ArchetypeChunk, int, bool, in v128)

    Copy the input component for current server tick to the command buffer.

    Declaration
    [BurstCompile]
    public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex, bool useEnabledMask, in v128 chunkEnabledMask)
    Parameters
    Type Name Description
    ArchetypeChunk chunk

    Chunk

    int unfilteredChunkIndex

    Chunk index

    bool useEnabledMask

    Should use enabled

    v128 chunkEnabledMask

    Chunk enabled mask

    Implements

    Unity.Entities.IJobChunk
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)