docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableShort

    A NetworkVariable that holds shorts and support serialization

    Inheritance
    object
    NetworkVariable<short>
    NetworkVariableShort
    Implements
    INetworkVariable
    Inherited Members
    NetworkVariable<short>.Settings
    NetworkVariable<short>.LocalTick
    NetworkVariable<short>.RemoteTick
    NetworkVariable<short>.OnValueChanged
    NetworkVariable<short>.Value
    NetworkVariable<short>.SetDirty(bool)
    NetworkVariable<short>.IsDirty()
    NetworkVariable<short>.ResetDirty()
    NetworkVariable<short>.CanClientRead(ulong)
    NetworkVariable<short>.WriteDelta(Stream)
    NetworkVariable<short>.CanClientWrite(ulong)
    NetworkVariable<short>.ReadDelta(Stream, bool, ushort, ushort)
    NetworkVariable<short>.SetNetworkBehaviour(NetworkBehaviour)
    NetworkVariable<short>.ReadField(Stream, ushort, ushort)
    NetworkVariable<short>.WriteField(Stream)
    NetworkVariable<short>.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 NetworkVariableShort : NetworkVariable<short>, INetworkVariable

    Constructors

    NetworkVariableShort()

    Creates a NetworkVariable with the default value and settings

    Declaration
    public NetworkVariableShort()

    NetworkVariableShort(NetworkVariableSettings)

    Creates a NetworkVariable with the default value and custom settings

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

    The settings to use for the NetworkVariable

    NetworkVariableShort(NetworkVariableSettings, short)

    Creates a NetworkVariable with a custom value and custom settings

    Declaration
    public NetworkVariableShort(NetworkVariableSettings settings, short value)
    Parameters
    Type Name Description
    NetworkVariableSettings settings

    The settings to use for the NetworkVariable

    short value

    The initial value to use for the NetworkVariable

    NetworkVariableShort(short)

    Creates a NetworkVariable with a custom value and the default settings

    Declaration
    public NetworkVariableShort(short value)
    Parameters
    Type Name Description
    short 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)