Testing our network-enabled PC and NPC

At this point, we have all of the assets needed to test out our network-enabled RPG characters. There is one final step that we 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 certain things 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 to 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 ...

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.