Field OnMigratedToNewScene
Notifies when the NetworkObject is migrated into a new scene
Namespace: Unity.Netcode
Assembly: solution.dll
Syntax
public Action OnMigratedToNewScene
Returns
Type | Description |
---|---|
Action |
Remarks
- ActiveSceneSynchronization or SceneMigrationSynchronization (or both) need to be enabled
- This only applies to dynamically spawned NetworkObjects.
- This only works when using integrated scene management (NetworkSceneManager).