Struct LagCompensationTestCommand | Unity NetCode | 0.4.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct LagCompensationTestCommand

    Namespace: Unity.NetCode.Physics.Tests
    Syntax
    public struct LagCompensationTestCommand : ICommandData, IBufferElementData, ICommandDataSerializer<LagCompensationTestCommand>

    Fields

    direction

    Declaration
    public float3 direction
    Field Value
    Type Description
    Unity.Mathematics.float3

    lastFire

    Declaration
    public uint lastFire
    Field Value
    Type Description
    UInt32

    origin

    Declaration
    public float3 origin
    Field Value
    Type Description
    Unity.Mathematics.float3

    Properties

    Tick

    Declaration
    public uint Tick { get; set; }
    Property Value
    Type Description
    UInt32
    Implements
    ICommandData.Tick

    Methods

    Deserialize(ref DataStreamReader, ref LagCompensationTestCommand)

    Declaration
    public void Deserialize(ref DataStreamReader reader, ref LagCompensationTestCommand data)
    Parameters
    Type Name Description
    DataStreamReader reader
    LagCompensationTestCommand data
    Implements
    ICommandDataSerializer<T>.Deserialize(ref DataStreamReader, ref T)

    Deserialize(ref DataStreamReader, ref LagCompensationTestCommand, LagCompensationTestCommand, NetworkCompressionModel)

    Declaration
    public void Deserialize(ref DataStreamReader reader, ref LagCompensationTestCommand data, in LagCompensationTestCommand baseline, NetworkCompressionModel model)
    Parameters
    Type Name Description
    DataStreamReader reader
    LagCompensationTestCommand data
    LagCompensationTestCommand baseline
    NetworkCompressionModel model
    Implements
    ICommandDataSerializer<T>.Deserialize(ref DataStreamReader, ref T, T, NetworkCompressionModel)

    Serialize(ref DataStreamWriter, LagCompensationTestCommand)

    Declaration
    public void Serialize(ref DataStreamWriter writer, in LagCompensationTestCommand data)
    Parameters
    Type Name Description
    DataStreamWriter writer
    LagCompensationTestCommand data
    Implements
    ICommandDataSerializer<T>.Serialize(ref DataStreamWriter, T)

    Serialize(ref DataStreamWriter, LagCompensationTestCommand, LagCompensationTestCommand, NetworkCompressionModel)

    Declaration
    public void Serialize(ref DataStreamWriter writer, in LagCompensationTestCommand data, in LagCompensationTestCommand baseline, NetworkCompressionModel model)
    Parameters
    Type Name Description
    DataStreamWriter writer
    LagCompensationTestCommand data
    LagCompensationTestCommand baseline
    NetworkCompressionModel model
    Implements
    ICommandDataSerializer<T>.Serialize(ref DataStreamWriter, T, T, NetworkCompressionModel)
    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