C# Class UnityEngine.Networking.NetworkSystem.PeerInfoMessage

Information about another participant in the same network game.

Inheritance: UnityEngine.Networking.MessageBase
Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Properties

Property Type Description
address string
connectionId int
isHost bool
isYou bool
playerIds UnityEngine.Networking.NetworkSystem.PeerInfoPlayer[]
port int

Public Methods

Method Description
Deserialize ( NetworkReader reader ) : void
Serialize ( NetworkWriter writer ) : void
ToString ( ) : string

Method Details

Deserialize() public method

public Deserialize ( NetworkReader reader ) : void
reader NetworkReader
return void

Serialize() public method

public Serialize ( NetworkWriter writer ) : void
writer UnityEngine.Networking.NetworkWriter
return void

ToString() public method

public ToString ( ) : string
return string

Property Details

address public property

The IP address of the peer.

public string address
return string

connectionId public property

The id of the NetworkConnection associated with the peer.

public int connectionId
return int

isHost public property

True if this peer is the host of the network game.

public bool isHost
return bool

isYou public property

True if the peer if the same as the current client.

public bool isYou
return bool

playerIds public property

The players for this peer.

public PeerInfoPlayer[],UnityEngine.Networking.NetworkSystem playerIds
return UnityEngine.Networking.NetworkSystem.PeerInfoPlayer[]

port public property

The network port being used by the peer.

public int port
return int