Photon Fusion 2.0.3

Classes | Static Public Member Functions | Public Attributes | List of all members
NetworkRunnerUpdaterDefault Class Reference

Default implementation of INetworkRunnerUpdater that uses the Unity PlayerLoop. More...

Inherits INetworkRunnerUpdater.

Classes

struct  NetworkRunnerRender
 Used to invoke NetworkRunner.RenderInternal in the PlayerLoop. More...
 
struct  NetworkRunnerUpdate
 Used to invoke NetworkRunner.UpdateInternal(double) in the PlayerLoop. More...
 

Static Public Member Functions

static bool RegisterInPlayerLoop (NetworkRunnerUpdaterDefaultInvokeSettings updateSettings, NetworkRunnerUpdaterDefaultInvokeSettings renderSettings)
 Registers in the PlayerLoop. More...
 
static bool UnregisterFromPlayerLoop ()
 Unregisters from the PlayerLoop. More...
 

Public Attributes

NetworkRunnerUpdaterDefaultInvokeSettings RenderSettings
 Default settings for the NetworkRunner Render Loop. More...
 
NetworkRunnerUpdaterDefaultInvokeSettings UpdateSettings
 Default settings for the NetworkRunner Update Loop. More...
 

Additional Inherited Members

Detailed Description

Default implementation of INetworkRunnerUpdater that uses the Unity PlayerLoop.

Member Function Documentation

◆ RegisterInPlayerLoop()

static bool RegisterInPlayerLoop ( NetworkRunnerUpdaterDefaultInvokeSettings  updateSettings,
NetworkRunnerUpdaterDefaultInvokeSettings  renderSettings 
)
static

Registers in the PlayerLoop.

Parameters
updateSettingsUpdate settings.
renderSettingsRender settings.
Returns
True if registered, false if already registered with the same settings.

◆ UnregisterFromPlayerLoop()

static bool UnregisterFromPlayerLoop ( )
static

Unregisters from the PlayerLoop.

Returns
True if unregistered, false if not registered.

Member Data Documentation

◆ RenderSettings

Initial value:
= new NetworkRunnerUpdaterDefaultInvokeSettings {
ReferencePlayerLoopSystem = typeof(Update.ScriptRunBehaviourUpdate),
}
UnityPlayerLoopSystemAddMode
Enum representing the possible modes for adding a system to the Unity player loop.
Definition: UnityPlayerLoopSystemUtils.cs:10

Default settings for the NetworkRunner Render Loop.

◆ UpdateSettings

Initial value:
= new NetworkRunnerUpdaterDefaultInvokeSettings {
ReferencePlayerLoopSystem = typeof(Update.ScriptRunBehaviourUpdate),
}

Default settings for the NetworkRunner Update Loop.