Class NetCodeDebugConfigAuthoring
Add this component to a gameobject present in a sub-scene to configure the NetDebug logging level and enable packet dumps.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.NetCode
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.netcode@latest/index.html?subfolder=/api/Unity.NetCode.NetCodeDebugConfigAuthoring.html")]
public class NetCodeDebugConfigAuthoring : MonoBehaviour
Fields
DumpPackets
Enable/Disable per connection packet dumps. When enabled, for each connection a file is created containing all the packet sent (for the server) or received (for the client). The packet dump use quite a lot of resources and should be used mostly (if not only) for debugging replication issues.
Declaration
public bool DumpPackets
Field Value
Type | Description |
---|---|
Boolean |
LogLevel
The current debug level used by netcode.
Declaration
public NetDebug.LogLevelType LogLevel
Field Value
Type | Description |
---|---|
NetDebug.LogLevelType |