docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkVariableColor

    A NetworkVariable that holds colors and support serialization

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

    Constructors

    NetworkVariableColor()

    Creates a NetworkVariable with the default value and settings

    Declaration
    public NetworkVariableColor()

    NetworkVariableColor(NetworkVariableSettings)

    Creates a NetworkVariable with the default value and custom settings

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

    The settings to use for the NetworkVariable

    NetworkVariableColor(NetworkVariableSettings, Color)

    Creates a NetworkVariable with a custom value and custom settings

    Declaration
    public NetworkVariableColor(NetworkVariableSettings settings, Color value)
    Parameters
    Type Name Description
    NetworkVariableSettings settings

    The settings to use for the NetworkVariable

    Color value

    The initial value to use for the NetworkVariable

    NetworkVariableColor(Color)

    Creates a NetworkVariable with a custom value and the default settings

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