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

Network identity - Unity Tutorial

From the course: Unity 5: Network Gaming

Start my 1-month free trial

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…

Contents