Basic GUI to show traffic and health statistics of the connection to Photon, toggled by shift+tab. More...
Inherits MonoBehaviour.
Public Member Functions | |
void | Start () |
void | Update () |
Checks for shift+tab input combination (to toggle statsOn). More... | |
void | OnGUI () |
void | TrafficStatsWindow (int windowID) |
Public Attributes | |
bool | statsWindowOn = true |
Shows or hides GUI (does not affect if stats are collected). More... | |
bool | statsOn = true |
Option to turn collecting stats on or off (used in Update()). More... | |
bool | healthStatsVisible |
Shows additional "health" values of connection. More... | |
bool | trafficStatsOn |
Shows additional "lower level" traffic stats. More... | |
bool | buttonsOn |
Show buttons to control stats and reset them. More... | |
Rect | statsRect = new Rect(0, 100, 200, 50) |
Positioning rect for window. More... | |
int | WindowId = 100 |
Unity GUI Window ID (must be unique or will cause issues). More... | |
Basic GUI to show traffic and health statistics of the connection to Photon, toggled by shift+tab.
The shown health values can help identify problems with connection losses or performance. Example: If the time delta between two consecutive SendOutgoingCommands calls is a second or more, chances rise for a disconnect being caused by this (because acknowledgements to the server need to be sent in due time).
void PhotonStatsGui.OnGUI | ( | ) |
void PhotonStatsGui.Start | ( | ) |
void PhotonStatsGui.TrafficStatsWindow | ( | int | windowID | ) |
void PhotonStatsGui.Update | ( | ) |
Checks for shift+tab input combination (to toggle statsOn).
bool PhotonStatsGui.buttonsOn |
Show buttons to control stats and reset them.
bool PhotonStatsGui.healthStatsVisible |
Shows additional "health" values of connection.
bool PhotonStatsGui.statsOn = true |
Option to turn collecting stats on or off (used in Update()).
Rect PhotonStatsGui.statsRect = new Rect(0, 100, 200, 50) |
Positioning rect for window.
bool PhotonStatsGui.statsWindowOn = true |
Shows or hides GUI (does not affect if stats are collected).
bool PhotonStatsGui.trafficStatsOn |
Shows additional "lower level" traffic stats.
int PhotonStatsGui.WindowId = 100 |
Unity GUI Window ID (must be unique or will cause issues).