docs.unity3d.com
    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.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.NetCode
    Syntax
    public static class NetworkIdDebugColorUtility

    Methods

    Get(Int32)

    Get the constant color assigned to the given network id.

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

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

    GetColor(Int32)

    Get the constant color assigned to the given network id.

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

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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023