Persisting NetworkObjects
This page will go over details on the options available to users for persisting NetworkObjects across scene loading and unloading
General
Spawned NetworkObjects
Example
// Just create an array of NetworkObjects
// that are not a Scene, Global or Nested NetworkObjects.
NetworkObject[] objectsToMove = new NetworkObject[] { object1, object2, object3 }
// Assign this array to the SceneLoadData before you Load a Scene.
SceneLoadData sld = new SceneLoadData("NewScene");
sld.MovedNetworkObjects = objectsToMove;
// FishNet will handle the rest after loading!
SceneManager.LoadGlobalScenes(sld);Scene NetworkObjects
Global NetworkObjects
Nested NetworkObjects
Last updated