docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkIdDebugColorUtility

    A collection of utility to assign constant colors for the NetworkId's. There are in total 13 unique colors, with 14+ mapping to the original.

    Inheritance
    object
    NetworkIdDebugColorUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public static class NetworkIdDebugColorUtility

    Methods

    Get(int)

    Get the constant color assigned to the given network id.

    Declaration
    public static float4 Get(int networkId)
    Parameters
    Type Name Description
    int networkId

    Network id

    Returns
    Type Description
    float4

    A constant debug color for NetworkId's to aid in debugging

    GetColor(int)

    Get the constant color assigned to the given network id.

    Declaration
    public static Color GetColor(int networkId)
    Parameters
    Type Name Description
    int networkId

    Network id

    Returns
    Type Description
    Color

    A constant debug color for NetworkId's to aid in debugging

    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)