O'Reilly logo

Building an RPG with Unity 5.x by Vahé Karamian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing Our Network-Enabled PC and NPC

At this point, we have all of the assets needed to test out our network-enabled PRG characters. There is one final step that you need to perform, if you have not done so already.

Select the NetworkManager GameObject in the Hierarchy Window, and from the Inspector Window, you will need to make sure the following have been assigned in the Spawn Info section:

Player Prefab should be assigned to your player character prefab, mine is named PC-CC-Network-1. Make sure Auto Create Player is set True.

You will also register your NPC prefabs and other network-enabled non-character prefabs in the Registered Spawnable Prefabs. I have the barbarian prefab named B1-Network-1 assigned, barbarian_helmet_01_LOD0_Network and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required