Answer the question
In order to leave comments, you need to log in
[Unity] How to synchronize foreign objects (bullet) in multiplayer?
Hello dear!
I'm making a first-person shooter with multiplayer in Unity. I have a "Bullet" script that weighs bullets on the prefab and when a bullet appears (spawns) on the stage, it sets its speed. There is also a "PlayerShoot" script, one of its functions is to spawn a bullet in a null object. Locally everything works great. That's actually the question: How to synchronize a bullet for other clients in the game.
I use NetworkManager, NetworkManagerHud - on a null object. NetworkStartPosition - on null objects where the player should spawn. NetworkIdentity, NetworkTransform and NetworkTransformChild on the player prefab.
PS Thank you all for your help :)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question