Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active May 24, 2026 19:32
Show Gist options
  • Select an option

  • Save unitycoder/6a9100e0e6408a7772cca4cb2ab6e45b to your computer and use it in GitHub Desktop.

Select an option

Save unitycoder/6a9100e0e6408a7772cca4cb2ab6e45b to your computer and use it in GitHub Desktop.
PurrNet Notes Unity

[InstantiateData] Can't spawn object because NetworkManager doesn't contain a HierarchyFactory. Modules are only registered once the NetworkManager is started. You can bypass spawning via UnityProxy.InstantiateDirectly.

Need to be connected into server first? Dont try to spawn at Start() method.

[InstantiateData] Can't spawn object in scene Main because it's not being tracked by the network manager. Only the default scene or scenes loaded through the sceneModule are tracked. You can bypass spawning via UnityProxy.InstantiateDirectly.

Need to be connected into server first? Dont try to spawn at Start() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment