Photon Fusion 2.0.0

Public Member Functions | List of all members
INetworkRunnerUpdater Interface Reference

Interface which defines the handlers for NetworkRunner Updates. An implementation is responsible for calling NetworkRunner.UpdateInternal(double) and NetworkRunner.RenderInternal periodically. More...

Inherited by NetworkRunnerUpdaterDefault, and NetworkRunnerUpdaterDummy.

Public Member Functions

void Initialize (NetworkRunner runner)
 Called when the NetworkRunner is started.
 
void Shutdown (NetworkRunner runner)
 Called when the NetworkRunner is stopped.
 

Detailed Description

Interface which defines the handlers for NetworkRunner Updates. An implementation is responsible for calling NetworkRunner.UpdateInternal(double) and NetworkRunner.RenderInternal periodically.

An instance of this interface can be passed to NetworkRunner.StartGame(StartGameArgs) as the StartGameArgs.Updater. By default (if StartGameArgs.Updater == null) Fusion will use NetworkRunnerUpdaterDefault, which invokes NetworkRunner.UpdateInternal(double) before script's Update and NetworkRunner.RenderInternal before LateUpdate.

Member Function Documentation

◆ Initialize()

void Initialize ( NetworkRunner  runner)

Called when the NetworkRunner is started.

Parameters
runnerThe NetworkRunner instance.

◆ Shutdown()

void Shutdown ( NetworkRunner  runner)

Called when the NetworkRunner is stopped.

Parameters
runnerThe NetworkRunner instance.