Creating the tank prefab and configuring the network lobby manager

Now that we have created our Tank GameObject and attached all of the necessary components and scripts to it, we need to make a prefab of it. This is because we will let NetworkLobbyManger spawn our player character, and in order for it to be able to do so, it needs to refer to a prefab that is a representation of your player character.

The NetworkLobbyManager has a Spawn Info section that you can assign the Player Prefab, determine if the NetworkLobbyManager can Auto Create Player and the Player Spawn Method.

There is also a section for Registered Spawnable Prefabs. We need to register all of the GameObjects that will be spawned by the NetworkServer. For instance, the Canon ...

Get Building an RPG with Unity 2018 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.