Photon Unity Networking 2 2.45

Public Member Functions | Public Attributes | Properties | List of all members
PhotonLagSimulationGui Class Reference

This MonoBehaviour is a basic GUI for the Photon client's network-simulation feature. It can modify lag (fixed delay), jitter (random lag) and packet loss. More...

Inherits MonoBehaviour.

Public Member Functions

void Start ()
 
void OnGUI ()
 

Public Attributes

Rect WindowRect = new Rect(0, 100, 120, 100)
 Positioning rect for window. More...
 
int WindowId = 101
 Unity GUI Window ID (must be unique or will cause issues). More...
 
bool Visible = true
 Shows or hides GUI (does not affect settings). More...
 

Properties

PhotonPeer Peer [get, set]
 The peer currently in use (to set the network simulation). More...
 

Detailed Description

This MonoBehaviour is a basic GUI for the Photon client's network-simulation feature. It can modify lag (fixed delay), jitter (random lag) and packet loss.

Member Data Documentation

◆ Visible

bool Visible = true

Shows or hides GUI (does not affect settings).

◆ WindowId

int WindowId = 101

Unity GUI Window ID (must be unique or will cause issues).

◆ WindowRect

Rect WindowRect = new Rect(0, 100, 120, 100)

Positioning rect for window.

Property Documentation

◆ Peer

PhotonPeer Peer
getset

The peer currently in use (to set the network simulation).