Let s start off by creating a level generator script.
Make object spawn on floor unity.
In the server authoritative model of the mirror to spawn a game object on the server means that the game object is created on clients connected to the server.
This is done with networkserver spawnwithclientauthority which takes the networkconnection of the client that will be made the authority as an argument.
However in mirror the word spawn means something more specific.
It is possible to spawn objects and assign authority of the objects to a particular client.
In order to do that click on your level object in the hierarchy head over to the inspector and click on add component and type levelgenerator and click add script.
Open that up in visual studio and let s start off with the code.
Unity spawn object at random position c script right click on your assets folder and create a c script called spawner and rename it to spawner.
In this video jared shows us how to create and delete objects in unity via scripts.
In unity you usually spawn that is create new gameobjects the fundamental object in unity scenes which can represent characters props scenery cameras waypoints and more.
More info see in glossary with instantiate however in the multiplayer high level api a system for building multiplayer capabilities.
A gameobject s functionality is defined by the components attached to it.
Open it up in visual studio and paste this code in there.
In unity you usually spawn that is create new game objects with instantiate.