Hi, I’m pretty new to Unet (like most of us) and I need to understand some basic things.
I’m making a racing game and I want to add multiplayer. I managed to set up the NetworkManager, NetworkIdentity etc… so when i’ve started a local game both players had control over their car. I’ve added 4 Network Transform Child components for each one of my wheels, so that the other players will see them spin and turn (I hope this is the right way…)
When i play, the car is very very laggy. I’ve tried to increase the Network Send Rate but i still get the same lag, How can i make the overall game smoother? I should point out that in the game the cars are very fast, and i want to get at top speed as less lag as possible.
Also, the only 2 things that i need to transfer to all the other clients are the car lights(are they on or off) and the car audio.
If both lights and audio are in arrays, how can i synchronize them to the server and what methods should i set as commands (just explain to me in general what should i do)
The car script is not mine, i’m using RealisticCarController…
I hope that you can understand somthing and help me, my english is not amazing.
Thanks