Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building an RPG with Unity 2018

You're reading from   Building an RPG with Unity 2018 Leverage the power of Unity 2018 to build elements of an RPG.

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781788623469
Length 366 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vahé Karamian Vahé Karamian
Author Profile Icon Vahé Karamian
Vahé Karamian
Arrow right icon
View More author details
Toc

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_Network.

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime