docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetCodeDebugConfig

    Add this component to a singleton entity to configure the NetCode package logging level and to enable/disable packet dumps.

    Implements
    IComponentData
    IQueryTypeParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    public struct NetCodeDebugConfig : IComponentData, IQueryTypeParameter

    Fields

    DumpPackets

    Enable/disable packet dumps. Packet dumps are meant to be enabled mostly for debugging purpose, being very expensive in both CPU and memory.

    Declaration
    public bool DumpPackets
    Field Value
    Type Description
    bool

    LogLevel

    The logging level used by netcode. The default is Notify.

    Declaration
    public NetDebug.LogLevelType LogLevel
    Field Value
    Type Description
    NetDebug.LogLevelType

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter
    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)