docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableUShort

    A NetworkVariable that holds ushorts and support serialization

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

    Constructors

    NetworkVariableUShort()

    Creates a NetworkVariable with the default value and settings

    Declaration
    public NetworkVariableUShort()

    NetworkVariableUShort(NetworkVariableSettings)

    Creates a NetworkVariable with the default value and custom settings

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

    The settings to use for the NetworkVariable

    NetworkVariableUShort(NetworkVariableSettings, ushort)

    Creates a NetworkVariable with a custom value and custom settings

    Declaration
    public NetworkVariableUShort(NetworkVariableSettings settings, ushort value)
    Parameters
    Type Name Description
    NetworkVariableSettings settings

    The settings to use for the NetworkVariable

    ushort value

    The initial value to use for the NetworkVariable

    NetworkVariableUShort(ushort)

    Creates a NetworkVariable with a custom value and the default settings

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