docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IInputBufferData

    Interface used to handle automatic input command data setup with the IInputComponentData style inputs. This is used internally by code generation, don't use this directly.

    Inherited Members
    ICommandData.Tick
    ICommandData.ToFixedString()
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    [Obsolete("The IInputBufferData interface has been deprecated. It was meant for internal use and any reference to it is considered an error. Please always use ICommandData instead.", false)]
    public interface IInputBufferData : ICommandData, IBufferElementData

    Methods

    DecrementEventsAndAssignToInput(IntPtr, IntPtr)

    Take the stored input data we have and copy to the given input data pointed to. Decrement any event counters by the counter value in the previous command buffer data element.

    Declaration
    void DecrementEventsAndAssignToInput(IntPtr prevInputBufferDataPtr, IntPtr inputPtr)
    Parameters
    Type Name Description
    IntPtr prevInputBufferDataPtr

    Command data from the previous tick

    IntPtr inputPtr

    Our stored input data will be copied over to this location

    IncrementEventsAndSetCurrentInputData(IntPtr, IntPtr)

    Save the input data with any event counters incremented by the counter from the last stored input in the command buffer for the current tick. See InputEvent.

    Declaration
    void IncrementEventsAndSetCurrentInputData(IntPtr lastInputBufferDataPtr, IntPtr inputPtr)
    Parameters
    Type Name Description
    IntPtr lastInputBufferDataPtr

    Pointer to the last command data in the buffer

    IntPtr inputPtr

    Pointer to input data to be saved in this command data

    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)