Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Quantum.QuantumStats Class Reference

Measures and display basic Quantum statistics on a UI element. More...

Inheritance diagram for Quantum.QuantumStats:
Quantum.QuantumMonoBehaviour

Public Member Functions

void ResetNetworkStats ()
 Resets the bandwidth stats measurement. More...
 
void Toggle ()
 Toggle the stats window. More...
 

Static Public Member Functions

static QuantumStats GetObject ()
 Find or create the stats window. More...
 
static void Hide ()
 Find or load the stats windows and disable it. More...
 
static void Show ()
 Find or load the stats windows and enable it. More...
 

Public Attributes

Text CompactStatsText
 The text field set when ShowCompactStats is true."/> More...
 
Text FramePredicted
 Current predicted frame. More...
 
Text FrameVerified
 Current verified frame. More...
 
Text InputOffset
 The current input offset. More...
 
Text NetworkIn
 The bytes received per second. More...
 
Text NetworkOut
 The bytes send per second. More...
 
Text NetworkPing
 The network ping measured by the simulation. More...
 
Text Predicted
 Number of predicted frames. More...
 
Text Resimulated
 Number of resimulated frames. More...
 
Boolean ShowCompactStats = true
 Shows frame and ping information on the toggle button. More...
 
Text SimulateTime
 The last simulation time. More...
 
Text SimulationState
 The state of the simulation. More...
 
Boolean StartEnabled = true
 Start the game with an open stats window. More...
 
GameObject ToggleOff
 Inactive state. More...
 
GameObject ToggleOn
 Active state. More...
 
Boolean UseCurrentBandwidth = true
 Use only the last second to measure NetworkOut and NetworkOut instead of the total time. More...
 

Detailed Description

Measures and display basic Quantum statistics on a UI element.

Member Function Documentation

◆ ResetNetworkStats()

void Quantum.QuantumStats.ResetNetworkStats ( )
inline

Resets the bandwidth stats measurement.

◆ Toggle()

void Quantum.QuantumStats.Toggle ( )
inline

Toggle the stats window.

◆ Show()

static void Quantum.QuantumStats.Show ( )
inlinestatic

Find or load the stats windows and enable it.

◆ Hide()

static void Quantum.QuantumStats.Hide ( )
inlinestatic

Find or load the stats windows and disable it.

◆ GetObject()

static QuantumStats Quantum.QuantumStats.GetObject ( )
inlinestatic

Find or create the stats window.

Returns
The stats window object

Member Data Documentation

◆ FrameVerified

Text Quantum.QuantumStats.FrameVerified

Current verified frame.

◆ FramePredicted

Text Quantum.QuantumStats.FramePredicted

Current predicted frame.

◆ Predicted

Text Quantum.QuantumStats.Predicted

Number of predicted frames.

◆ Resimulated

Text Quantum.QuantumStats.Resimulated

Number of resimulated frames.

◆ SimulateTime

Text Quantum.QuantumStats.SimulateTime

The last simulation time.

◆ SimulationState

Text Quantum.QuantumStats.SimulationState

The state of the simulation.

◆ NetworkPing

Text Quantum.QuantumStats.NetworkPing

The network ping measured by the simulation.

◆ NetworkIn

Text Quantum.QuantumStats.NetworkIn

The bytes received per second.

◆ NetworkOut

Text Quantum.QuantumStats.NetworkOut

The bytes send per second.

◆ InputOffset

Text Quantum.QuantumStats.InputOffset

The current input offset.

◆ ToggleOn

GameObject Quantum.QuantumStats.ToggleOn

Active state.

◆ ToggleOff

GameObject Quantum.QuantumStats.ToggleOff

Inactive state.

◆ StartEnabled

Boolean Quantum.QuantumStats.StartEnabled = true

Start the game with an open stats window.

◆ UseCurrentBandwidth

Boolean Quantum.QuantumStats.UseCurrentBandwidth = true

Use only the last second to measure NetworkOut and NetworkOut instead of the total time.

◆ ShowCompactStats

Boolean Quantum.QuantumStats.ShowCompactStats = true

Shows frame and ping information on the toggle button.

◆ CompactStatsText

Text Quantum.QuantumStats.CompactStatsText

The text field set when ShowCompactStats is true."/>