Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Quantum.InstantReplaySettings Struct Reference

Settings required to record frame snapshots for instant replays. More...

Public Member Functions

override string ToString ()
 Override ToString method to debug output readable class members. More...
 

Static Public Member Functions

static InstantReplaySettings FromLength (FP length, int snapshotsPerSecond)
 Create settings. More...
 

Public Attributes

FP LengthSeconds
 How many seconds of past to recorded. More...
 
int SnapshotsPerSecond
 How many snapshots to record per second. More...
 

Static Public Attributes

static InstantReplaySettings Default
 Create default settings, 3 seconds and 1 snapshot per second. More...
 

Properties

FP LenghtSeconds [get, set]
 Obsolete, use LengthSeconds instead. More...
 

Detailed Description

Settings required to record frame snapshots for instant replays.

Member Function Documentation

◆ FromLength()

static InstantReplaySettings Quantum.InstantReplaySettings.FromLength ( FP  length,
int  snapshotsPerSecond 
)
inlinestatic

Create settings.

Parameters
lengthLenghtSeconds
snapshotsPerSecondSnapshotsPerSecond
Returns

◆ ToString()

override string Quantum.InstantReplaySettings.ToString ( )
inline

Override ToString method to debug output readable class members.

Returns
Debug string

Member Data Documentation

◆ SnapshotsPerSecond

int Quantum.InstantReplaySettings.SnapshotsPerSecond

How many snapshots to record per second.

◆ LengthSeconds

FP Quantum.InstantReplaySettings.LengthSeconds

How many seconds of past to recorded.

◆ Default

InstantReplaySettings Quantum.InstantReplaySettings.Default
static
Initial value:
=> new InstantReplaySettings() {
}

Create default settings, 3 seconds and 1 snapshot per second.

Property Documentation

◆ LenghtSeconds

FP Quantum.InstantReplaySettings.LenghtSeconds
getset

Obsolete, use LengthSeconds instead.

Quantum.InstantReplaySettings.LengthSeconds
FP LengthSeconds
How many seconds of past to recorded.
Definition: InstantReplaySettings.cs:17
Quantum.InstantReplaySettings.SnapshotsPerSecond
int SnapshotsPerSecond
How many snapshots to record per second.
Definition: InstantReplaySettings.cs:13