The network class is at the heart of the network implementation and provides the core functions.
This class configures the network interface and all the network parameters. You use it to set up a
server or connect to one and have a row of helper functions to help you with those tasks.
For more information on what is exposed in the editor see the Network Manger component reference.
| InitializeServer |
Initialize the server.
|
| InitializeSecurity |
Initializes security layer.
|
| Connect |
Connect to the specified host (ip or domain name) and server port.
|
| Disconnect |
Close all open connections and shuts down the network interface.
|
| CloseConnection |
Close the connection to another system.
|
| AllocateViewID |
Query for the next available network view ID number and allocate it (reserve).
|
| Instantiate |
Network instantiate a prefab.
|
| Destroy |
Destroy the object associated with this view ID across the network.
|
| DestroyPlayerObjects |
Destroy all the objects based on view IDs belonging to this player.
|
| RemoveRPCs |
Remove all RPC functions which belong to this player ID.
|
| RemoveRPCsInGroup |
Remove all RPC functions which belong to given group number.
|
| RemoveRPCs |
Remove the RPC function calls accociated with this view ID number.
|
| SetLevelPrefix |
Set the level prefix which will then be prefixed to all network ViewID numbers.
|
| GetLastPing |
The last ping time to the given player in milliseconds.
|
| GetAveragePing |
The last average ping time to the given player in milliseconds.
|
| SetReceivingEnabled |
Enable or disables the reception of messages in a specific group number from a specific player.
|
| SetSendingEnabled |
Enables or disables transmission of messages and RPC calls on a specific network group number.
|
| TestConnection |
Test this machines network connection.
|
| TestConnectionNAT |
Test the connecction specifically for NAT punchthrough connectivity.
|
| HavePublicAddress |
Check if this machine has a public IP address.
|