NetworkControl
Jump To Parameters
Jump To Function Definitions
Parameter Definitions
Select the parameter name from below to jump directly to it on this page.
WindowId
WindowRect
jitterAmount
lagAmount
lossPercent
simulate
WindowId
The id of the unity window, must be unique or it causes issues.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | int | 909 |
WindowRect
Position of the window
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | Rect | new Rect(Screen.width-270, 0, 200, 200) |
jitterAmount
The amount of network jitter to simulate over the network. “
Adds a random delay of "up to X milliseconds" per message
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | float | 0.0f |
lagAmount
The amount of lag to simulate over the network. “
Adds a fixed delay to all outgoing and incoming messages. In milliseconds
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | float | 0.0f |
lossPercent
How many lost network packets you want to simulate. Drops the set “
percentage of messages. You can expect less than 2% drop in the internet today.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | float | 0.0f |
simulate
Being the network simulation based on the settings? “
Enables and disables the simulation. A sudden, big change of network “
conditions might result in disconnects.
| Exposed Value | Type | Default Value |
|---|---|---|
| protected | bool | false |
Function Definitions
Select the function name from below to jump directly to it on this page.
DisconnectFromPhoton
LeaveRoom
OnGUI
SetReconnect
Update
public void DisconnectFromPhoton()
Will disconnect from photon.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | False | Does not return anything |
No parameters
public void LeaveRoom()
Leaves your current room.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | False | Does not return anything |
No parameters
protected virtual void OnGUI()
Produces a visual interface at runtime which makes this useable with builds as well.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters
public void SetReconnect(bool isEnabled)
Sets the Network Managers reconnect value.
| Expose Value | Overrideable | Returns |
|---|---|---|
| public | False | Does not return anything |
| Parameter Name | Description |
|---|---|
| isEnabled | reconnect is true or false |
protected virtual void Update()
Use to automatically update the network settings according to the settings you apply in realtime.
| Expose Value | Overrideable | Returns |
|---|---|---|
| protected | True | Does not return anything |
No parameters