docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor NetworkDeltaPosition

    NetworkDeltaPosition(Vector3, int, bool3)

    Constructor

    Declaration
    public NetworkDeltaPosition(Vector3 vector3, int networkTick, bool3 axisToSynchronize)
    Parameters
    Type Name Description
    Vector3 vector3

    The initial axial values (converted to half floats) when instantiated.

    int networkTick

    Set the network tick value to the current network tick when instantiating.

    bool3 axisToSynchronize

    The axis to be synchronized.

    NetworkDeltaPosition(Vector3, int)

    Constructor that defaults to all axis being synchronized.

    Declaration
    public NetworkDeltaPosition(Vector3 vector3, int networkTick)
    Parameters
    Type Name Description
    Vector3 vector3

    The initial axial values (converted to half floats) when instantiated.

    int networkTick

    Set the network tick value to the current network tick when instantiating.

    NetworkDeltaPosition(float, float, float, int, bool3)

    Constructor

    Declaration
    public NetworkDeltaPosition(float x, float y, float z, int networkTick, bool3 axisToSynchronize)
    Parameters
    Type Name Description
    float x

    The initial x axis (converted to half float) value when instantiated.

    float y

    The initial y axis (converted to half float) value when instantiated.

    float z

    The initial z axis (converted to half float) value when instantiated.

    int networkTick

    Set the network tick value to the current network tick when instantiating.

    bool3 axisToSynchronize

    The axis to be synchronized.

    NetworkDeltaPosition(float, float, float, int)

    Constructor

    Declaration
    public NetworkDeltaPosition(float x, float y, float z, int networkTick)
    Parameters
    Type Name Description
    float x

    The initial x axis (converted to half float) value when instantiated.

    float y

    The initial y axis (converted to half float) value when instantiated.

    float z

    The initial z axis (converted to half float) value when instantiated.

    int networkTick

    Set the network tick value to the current network tick when instantiating.

    In This Article
    Back to top
    Copyright © 2024 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)