Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
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
Unity Multiplayer Games

You're reading from   Unity Multiplayer Games Take your gaming development skills into the online multiplayer arena by harnessing the power of Unity 4 or 3. This is not a dry tutorial – it uses exciting examples and an enthusiastic approach to bring it all to life.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781849692328
Length 242 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alan R. Stagner Alan R. Stagner
Author Profile Icon Alan R. Stagner
Alan R. Stagner
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Unity Networking – The Pong Game FREE CHAPTER 2. Photon Unity Networking – The Chat Client 3. Photon Server – Star Collector 4. Player.IO – Bot Wars 5. PubNub – The Global Chatbox 6. Entity Interpolation and Prediction 7. Server-side Hit Detection Index

Unity IDE crash course

To better understand this book, we'll need to cover the basic features of the Unity IDE.

If you open Unity for the first time, you'll be presented with a window where you can either open an existing project or create a new one. Select the Create New Project tab, and choose a location for your project.

Once your project is created, you'll see a number of panels. There are the Scene and Game tabs, the Hierarchy, Project, and Console tabs, and the Inspector tab.

The Scene view shows the current scene. This will allow you to navigate the scene, select objects, move them around, and more. The Game view shows the view of the main camera. If you press the Play button, the Game view is automatically shown and allows you to play test your game from inside the editor.

The Hierarchy tab shows the object hierarchy of the current scene. This allows you to select objects, parent or unparent them, delete them, rename them, and much more.

The Inspector tab shows the editors for each component attached to the selected object (rather than being inheritance based like many traditional engines, Unity is component based, where objects are a collection of components and each component has a separate responsibility). It allows you to set values and change properties of components. You can also remove components by right clicking on a component and clicking on Remove Component. In Unity 4 and later, you can also click on the Add Component button and select a component script.

The Project tab shows the assets in your project. You can drop game assets here to import them, and you can create new materials, scripts, and shaders by right-clicking and selecting the Create option. You can also drag objects from the Hierarchy to the Project tab to create a prefab. Prefabs are essentially object templates—you can Instantiate a prefab to create an exact copy of the prefab in the scene (for instance, you might create an Enemy prefab, and instantiate it to spawn enemies). You can also drag component scripts from the Project to the Inspector of a selected game object to add the component to the object.

To learn more about Unity, you can get started here:

http://unity3d.com/learn

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
Banner background image