{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct NetDebug | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NetDebug

    Singleton handling NetCode logging and log management.

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

    Properties

    Name Description
    LogLevel

    The current debug logging level. Default value is Notify.

    MaxRpcAgeFrames

    A NetCode RPC will trigger a warning if it hasn't been consumed or destroyed (which is a proxy for 'handled') after this many simulation frames (inclusive). ReceiveRpcCommandRequest.Age. Set to 0 to opt out.

    SuppressApplicationRunInBackgroundWarning

    If you disable runInBackground, users will experience client disconnects when tabbing out of (or otherwise un-focusing) your game application. It is therefore highly recommended to enable "Run in "Background" via ticking Project Settings... Player... Resolution and Presentation... Run In Background.

    Methods

    Name Description
    DebugLog(in FixedString512Bytes)

    Print the log message with Debug level priority;

    Dispose()

    Destroy the internal resources allocated by the debug logger and flush any pending messages.

    Log(in FixedString512Bytes)

    Print a log message with Notify level priority;

    LogError(in FixedString512Bytes)

    Print a log message with error priority

    LogFolderForPlatform()

    Use this method to retrieve the platform specific folder where the NetCode logs files will be stored. On Desktop it use the consoleLogPath is used. For mobile, the persistentDataPath is used. For DOTS Runtime builds, it is possible to customise the output by using the -logfile command line switch.

    In all cases, if the log path is null or empty, the Logs folder in the current directory is used instead.

    LogWarning(in FixedString512Bytes)

    Print a log message with warning priority

    PrintHex(uint)

    Print an unsigned integer in hexadecimal format

    PrintHex(ulong)

    Print a unsigned long integer in hexadecimal format

    In This Article
    Back to top
    Copyright © 2023 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)