Photon Quantum 3.0.0

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

A handler object that subscribes to Quantum callbacks to handle Unity scene loading and unloading. More...

Inherits IDisposable.

Public Member Functions

 QuantumCallbackHandler_UnityCallbacks (QuantumGame game)
 Creates a new instance of the QuantumCallbackHandler_UnityCallbacks class. More...
 
void Dispose ()
 Dispose the object, unsubscribe from Quantum callbacks. Will log a warning if a map loading or unloading is still in progress. Will start a coroutine to unload the current scene if it was not unloaded yet. More...
 

Static Public Member Functions

static IDisposable Initialize ()
 Init and subscribe to Quantum callbacks. More...
 

Detailed Description

A handler object that subscribes to Quantum callbacks to handle Unity scene loading and unloading.

Constructor & Destructor Documentation

◆ QuantumCallbackHandler_UnityCallbacks()

Quantum.QuantumCallbackHandler_UnityCallbacks.QuantumCallbackHandler_UnityCallbacks ( QuantumGame  game)
inline

Creates a new instance of the QuantumCallbackHandler_UnityCallbacks class.

Parameters
gameReferenced game

Member Function Documentation

◆ Initialize()

static IDisposable Quantum.QuantumCallbackHandler_UnityCallbacks.Initialize ( )
inlinestatic

Init and subscribe to Quantum callbacks.

Returns
An object to dispose to unsubscribe from the callbacks

◆ Dispose()

void Quantum.QuantumCallbackHandler_UnityCallbacks.Dispose ( )
inline

Dispose the object, unsubscribe from Quantum callbacks. Will log a warning if a map loading or unloading is still in progress. Will start a coroutine to unload the current scene if it was not unloaded yet.