docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableVector2

    A NetworkVariable that holds vector2s and support serialization

    Inheritance
    object
    NetworkVariable<Vector2>
    NetworkVariableVector2
    Implements
    INetworkVariable
    Inherited Members
    NetworkVariable<Vector2>.Settings
    NetworkVariable<Vector2>.LocalTick
    NetworkVariable<Vector2>.RemoteTick
    NetworkVariable<Vector2>.OnValueChanged
    NetworkVariable<Vector2>.Value
    NetworkVariable<Vector2>.SetDirty(bool)
    NetworkVariable<Vector2>.IsDirty()
    NetworkVariable<Vector2>.ResetDirty()
    NetworkVariable<Vector2>.CanClientRead(ulong)
    NetworkVariable<Vector2>.WriteDelta(Stream)
    NetworkVariable<Vector2>.CanClientWrite(ulong)
    NetworkVariable<Vector2>.ReadDelta(Stream, bool, ushort, ushort)
    NetworkVariable<Vector2>.SetNetworkBehaviour(NetworkBehaviour)
    NetworkVariable<Vector2>.ReadField(Stream, ushort, ushort)
    NetworkVariable<Vector2>.WriteField(Stream)
    NetworkVariable<Vector2>.GetChannel()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MLAPI.NetworkVariable
    Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
    Syntax
    [Serializable]
    public class NetworkVariableVector2 : NetworkVariable<Vector2>, INetworkVariable

    Constructors

    NetworkVariableVector2()

    Creates a NetworkVariable with the default value and settings

    Declaration
    public NetworkVariableVector2()

    NetworkVariableVector2(NetworkVariableSettings)

    Creates a NetworkVariable with the default value and custom settings

    Declaration
    public NetworkVariableVector2(NetworkVariableSettings settings)
    Parameters
    Type Name Description
    NetworkVariableSettings settings

    The settings to use for the NetworkVariable

    NetworkVariableVector2(NetworkVariableSettings, Vector2)

    Creates a NetworkVariable with a custom value and custom settings

    Declaration
    public NetworkVariableVector2(NetworkVariableSettings settings, Vector2 value)
    Parameters
    Type Name Description
    NetworkVariableSettings settings

    The settings to use for the NetworkVariable

    Vector2 value

    The initial value to use for the NetworkVariable

    NetworkVariableVector2(Vector2)

    Creates a NetworkVariable with a custom value and the default settings

    Declaration
    public NetworkVariableVector2(Vector2 value)
    Parameters
    Type Name Description
    Vector2 value

    The initial value to use for the NetworkVariable

    Implements

    INetworkVariable
    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)