docs.unity3d.com
    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
    Namespace: Unity.NetCode
    Syntax
    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023