Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Network.logLevel

public static NetworkLogLevel logLevel;

Description

Set the log level for network messages (default is Off).

For a description of the different log levels have a look at the NetworkLogLevel enum.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { Network.logLevel = NetworkLogLevel.Full; } }