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.

Multplayer projectiles

Multplayer projectiles - Unity Tutorial

From the course: Unity 5: Network Gaming

Start my 1-month free trial

Multplayer projectiles

- [Instructor] In our last video, we added a non-network projectile fired by our players. In this video, we'll network-enable those projectiles. Since we already network-enabled a tank, you can guess how most of this will go. We're going to start by finding the projectile prefab in the assets window. Just like with the tank, we need to add the network identity component to it, so I'll select add component. I'll filter it on network and I'll find the network identity component and add it. We're also going to need a network transform. I'm going to close some of these up to make it a little bit easier to see and I'm going to move this down a little bit since we don't need to preview it anymore. And I'll add the network transform component. One adjustment I'm going to want to make on the projectile is something we talked about earlier, the network send rate. Earlier, when we talked about the network send rate, we talked about it with respect to the tank and we pretty much just left it at…

Contents