Network
- AllocateViewID
- CloseConnection
- connections
- connectionTesterIP
- connectionTesterPort
- Connect
- DestroyPlayerObjects
- Destroy
- Disconnect
- GetAveragePing
- GetLastPing
- HavePublicAddress
- incomingPassword
- InitializeSecurity
- InitializeServer
- Instantiate
- isClient
- isMessageQueueRunning
- isServer
- logLevel
- maxConnections
- minimumAllocatableViewIDs
- natFacilitatorIP
- natFacilitatorPort
- OnConnectedToServer
- OnDisconnectedFromServer
- OnFailedToConnectToM...
- OnFailedToConnect
- OnNetworkInstantiate
- OnPlayerConnected
- OnPlayerDisconnected
- OnSerializeNetworkView
- OnServerInitialized
- peerType
- player
- proxyIP
- proxyPassword
- proxyPort
- RemoveRPCsInGroup
- RemoveRPCs
- sendRate
- SetLevelPrefix
- SetReceivingEnabled
- SetSendingEnabled
- TestConnectionNAT
- TestConnection
- time
- useProxy
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;
}
最后修改:2011年4月2日 Saturday 12:14