Training Center

Unity Networking Scripting I

Unity Networking Scripting I

Unity makes complex network and multiplayer functionality more approachable than ever with its Network class and masterserver database. Learn how to connect players across a network, how to sync object and variable states between game instances, how to create a chat system, and how to post and receive global server-side high scores. You'll be able to use the tools and techniques learned here and begin to craft your first multiplayer game on your own. It won't be easy, but you'll have the foundation you need to get started.

We introduce you to what you'll learn in this module. We'll show you how to connect two players to each other, how to synchronize their game states, how to make a chat system, and how to create a global high score system.

Additional Info

  • Runtime 01 min 23 sec
  • Software Unity
Login to download project files

We use the Network class to connect two players to each other. The players must know their IP adresses and list port numbers in order to use this type of connection.

Additional Info

  • Runtime 23 min 36 sec
  • Software Unity

In this chapter you'll learn how to use the Master Server to facilitate connections between players. Using this method means that players do not have to know any technical information about other players.

Additional Info

  • Runtime 13 min 20 sec
  • Software Unity

RPCs are a way to call functions on remotely-connected computers. We'll explore how to send these messages across the network using the Network View component.

Additional Info

  • Runtime 09 min 27 sec
  • Software Unity

You learn how to ensure that each connected player is playing “the same game” by synchronizing the position and rotation of GameObjects with Network Views in each instance of the game.

Additional Info

  • Runtime 14 min 00 sec
  • Software Unity

Variables can be synchronized with Network Views as well, but they require coding a special function called OnSerializeNetworkView() to do so.

Additional Info

  • Runtime 15 min 13 sec
  • Software Unity

Learn how to implement a basic chat system in your game.

Additional Info

  • Runtime 23 min 18 sec
  • Software Unity

Learn how to host a high score database for your game so players all over the world can compare scores.

Additional Info

  • Runtime 25 min 41 sec
  • Software Unity

Learn how to use the high score database you set up in Network Scripting I Chapter 8 to download scores and display them in your game.

Additional Info

  • Runtime 10 min 49 sec
  • Software Unity

An overview of the tools you should have after working through Network Scripting I.

Additional Info

  • Runtime 01 min 40 sec
  • Software Unity

Chapter List

Questions? ¿Preguntas? 有问题吗? Domande? Вопросы? 質問はありますか? सवाल? الأسئلة؟
This email address is being protected from spambots. You need JavaScript enabled to view it.

About design3

design3 is THE game production web portal. Whether you’re an industry veteran keeping up with new tools and trends or an aspiring developer searching for professional training, expert advice and career tips – design3.com is where you need to be.

Sign-up for our newsletter!

:

Copyright © 2006 - 2012 design3. All rights reserved.

Sign In or Become a member

Facebook user?

You can use your Facebook account to sign into our site.

Log in with Facebook

LOG IN