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 SpawnInfo
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
, and shield_01_LOD0_Networ
k.
Take a look at the following screenshot:
Alright, at last, we can do a build. Let's go ahead and make a stand-alone build of our game. Make sure that the current scene is in the build configuration:
Go ahead and launch two instances...