Interface which defines the handlers for NetworkRunner Spawn() and Despawn() actions. Passing an instance of this interface to NetworkRunner.StartGame(StartGameArgs) as the StartGameArgs.ObjectProvider argument value will assign that instance as the handler for runner Spawn() and Despawn() actions. By default (if StartGameArgs.ObjectProvider == null), actions will use Instantiate(), and Despawn() actions will use Destroy(). More...
Inherited by NetworkObjectProviderDummy.
Public Member Functions | |
NetworkObjectAcquireResult | AcquireInstance (NetworkRunner runner, in NetworkObjectAcquireContext context, out NetworkObject result) |
Acquires an instance of a prefab for a network object. More... | |
NetworkObjectAcquireResult | AcquirePrefabInstance (NetworkRunner runner, in NetworkPrefabAcquireContext context, out NetworkObject result) |
Obsolete, use AcquireInstance((NetworkRunner runner, in NetworkObjectAcquireContext context, out NetworkObject result) instead. More... | |
NetworkPrefabId | GetPrefabId (NetworkRunner runner, NetworkObjectGuid prefabGuid) |
Translates guid into prefab id. More... | |
void | Initialize (NetworkRunner networkRunner) |
Called when the NetworkRunner is starting up. More... | |
void | ReleaseInstance (NetworkRunner runner, in NetworkObjectReleaseContext context) |
Releases an instance of a network object. More... | |
void | Shutdown (NetworkRunner networkRunner) |
Called when the NetworkRunner is shutting down. More... | |
Interface which defines the handlers for NetworkRunner Spawn() and Despawn() actions. Passing an instance of this interface to NetworkRunner.StartGame(StartGameArgs) as the StartGameArgs.ObjectProvider argument value will assign that instance as the handler for runner Spawn() and Despawn() actions. By default (if StartGameArgs.ObjectProvider == null), actions will use Instantiate(), and Despawn() actions will use Destroy().
NetworkObjectAcquireResult AcquireInstance | ( | NetworkRunner | runner, |
in NetworkObjectAcquireContext | context, | ||
out NetworkObject | result | ||
) |
Acquires an instance of a prefab for a network object.
runner | The NetworkRunner that manages the network objects. |
context | The context that provides information for acquiring the prefab instance. |
result | The acquired NetworkObject instance. |
Implemented in NetworkObjectProviderDummy.
NetworkObjectAcquireResult AcquirePrefabInstance | ( | NetworkRunner | runner, |
in NetworkPrefabAcquireContext | context, | ||
out NetworkObject | result | ||
) |
Obsolete, use AcquireInstance((NetworkRunner runner, in NetworkObjectAcquireContext context, out NetworkObject result) instead.
runner | |
context | |
result |
NotSupportedException |
NetworkPrefabId GetPrefabId | ( | NetworkRunner | runner, |
NetworkObjectGuid | prefabGuid | ||
) |
Translates guid into prefab id.
runner | |
prefabGuid |
Implemented in NetworkObjectProviderDummy.
void Initialize | ( | NetworkRunner | networkRunner | ) |
Called when the NetworkRunner is starting up.
networkRunner |
void ReleaseInstance | ( | NetworkRunner | runner, |
in NetworkObjectReleaseContext | context | ||
) |
Releases an instance of a network object.
runner | The NetworkRunner that manages the network objects. |
context | The context that provides information for releasing the network object instance. |
Implemented in NetworkObjectProviderDummy.
void Shutdown | ( | NetworkRunner | networkRunner | ) |
Called when the NetworkRunner is shutting down.
networkRunner |