From the course: Unity 5: Network Gaming
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Network identity - Unity Tutorial
From the course: Unity 5: Network Gaming
Network identity
- [Instructor] In the last video, we established the bare basics required to make this a network multiplayer game at the scene or game level. But before any network interactions can begin working, we need to establish which items in our game need to be network-enabled. The idea behind our game is that each player controls their own tank, so clearly the tank needs network components on it. In contrast, the terrain isn't under anyone's control, it's just there in everybody's copy of the game, so it doesn't need any special attention. Let's focus on our tank. Any game object in your game that will be controlled by a player in the game needs a network identity component attached. Select the Tank, and let's add a network identity component. Now before I do this, I'm going to go ahead and roll some of these components up so that we have a little bit more room. I'll select Add Component, and I still have Network here. That helps, and we're looking for Network Identity. It's about the third…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Project overview3m 15s
-
(Locked)
Set up the Network Manager2m 11s
-
(Locked)
Network identity3m 1s
-
(Locked)
Testing the game3m 46s
-
(Locked)
Network transform6m 58s
-
(Locked)
The local player6m 26s
-
(Locked)
Instantiate projectiles6m 58s
-
(Locked)
Firing projectiles6m 5s
-
(Locked)
Multplayer projectiles5m 2s
-
(Locked)
Adding a health indicator, part 12m 53s
-
(Locked)
Adding a health indicator, part 23m 44s
-
(Locked)
Adding a health indicator, part 34m 46s
-
(Locked)
Multiplayer health5m 54s
-
(Locked)
Fragging the enemy5m
-
(Locked)
Respawning6m 14s
-
(Locked)
-