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.
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().
◆ AcquirePrefabInstance()
Acquires an instance of a prefab for a network object.
- Parameters
-
runner | The NetworkRunner that manages the network objects. |
context | The context that provides information for acquiring the prefab instance. |
result | The acquired NetworkObject instance. |
- Returns
- A NetworkObjectAcquireResult indicating the result of the operation.
Implemented in NetworkObjectProviderDummy.
◆ GetPrefabId()
◆ Initialize()
◆ ReleaseInstance()
Releases an instance of a network object.
- Parameters
-
runner | The NetworkRunner that manages the network objects. |
context | The context that provides information for releasing the network object instance. |
Implemented in NetworkObjectProviderDummy.
◆ Shutdown()