Spawning & Despawning
Last updated
Last updated
Spawning and Despawning in PurrNet is as easy as instantiating and destroying in Unity! If the object contains a network identity (example your own scripts or the prefab link, network transform, etc.), it will automatically be spawned for other clients.
You can also easily drag and drop prefabs from your project into the scene in the Unity Editor, and it should just work as well!
Keep in mind that for spawning and despawning the network rules need to allow your relative role to the object to spawn or despawn it. With the unsafe rules, everyone can do it.