S
S
Senture2018-03-29 20:38:58
Computer networks
Senture, 2018-03-29 20:38:58

[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

1 answer(s)
G
Griboks, 2018-03-29
@Senture

Read off again. manual. You are doing everything right, but you forgot to configure the components somewhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question