Network.logLevel 日志级别

static var logLevel : NetworkLogLevel

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.

用于不同日志级别的描述,看NetworkLogLevel枚举设置。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
		Network.logLevel = NetworkLogLevel.Full;
	}
}
function Start () {
	Network.logLevel = NetworkLogLevel.Full;
}
Page last updated: 2011-4-2