Photon Quantum 3.0.0

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

Utility class for manipulating Unity Player Loop System. More...

Static Public Member Functions

static QuantumPlayerLoopSystemHandle AddToPlayerLoop (ref this PlayerLoopSystem parentSystem, Type referenceSystemType, QuantumPlayerLoopSystemAddMode addMode, Type ownerType, PlayerLoopSystem.UpdateFunction updateDelegate)
 Adds a new loop system in relation to referenceSystemType More...
 
static IDisposable AddToPlayerLoop (Type referenceSystemType, QuantumPlayerLoopSystemAddMode addMode, Type ownerType, PlayerLoopSystem.UpdateFunction updateDelegate)
 Adds a new loop system in relation to referenceSystemType More...
 
static bool RemoveFromPlayerLoop (ref this PlayerLoopSystem parentSystem, Type type)
 Removes a player loop system of given type. More...
 
static bool RemoveFromPlayerLoop (Type type)
 Removes a player loop system of given type. More...
 

Detailed Description

Utility class for manipulating Unity Player Loop System.

Member Function Documentation

◆ AddToPlayerLoop() [1/2]

static IDisposable Quantum.QuantumPlayerLoopSystemUtils.AddToPlayerLoop ( Type  referenceSystemType,
QuantumPlayerLoopSystemAddMode  addMode,
Type  ownerType,
PlayerLoopSystem.UpdateFunction  updateDelegate 
)
inlinestatic

Adds a new loop system in relation to referenceSystemType

◆ AddToPlayerLoop() [2/2]

static QuantumPlayerLoopSystemHandle Quantum.QuantumPlayerLoopSystemUtils.AddToPlayerLoop ( ref this PlayerLoopSystem  parentSystem,
Type  referenceSystemType,
QuantumPlayerLoopSystemAddMode  addMode,
Type  ownerType,
PlayerLoopSystem.UpdateFunction  updateDelegate 
)
inlinestatic

Adds a new loop system in relation to referenceSystemType

◆ RemoveFromPlayerLoop() [1/2]

static bool Quantum.QuantumPlayerLoopSystemUtils.RemoveFromPlayerLoop ( Type  type)
inlinestatic

Removes a player loop system of given type.

Returns
True if adding was successful

◆ RemoveFromPlayerLoop() [2/2]

static bool Quantum.QuantumPlayerLoopSystemUtils.RemoveFromPlayerLoop ( ref this PlayerLoopSystem  parentSystem,
Type  type 
)
inlinestatic

Removes a player loop system of given type.

Returns
True if adding was successful