- Home /
Instantiated Object not appearing for remote players
I've been making a Multiplayer Online FPS recently and I ran into an issue. I wanna instantiate an egg into the scene, here's the code.
private void Shoot()
{
Debug.Log("PEW");
var egg = (GameObject)Instantiate(bulletPrefab, shotPoint.position, shotPoint.rotation);
NetworkServer.Spawn(egg);
}
When it is instantiated, the egg shows up on the local player's screen but not on the remote player's screen. I've registered it into the network manager and I'm pretty sure I set up the network identity and network transform correctly. Here is an image of both just in case I didn't:
Please help! ;-; :(
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
UNet changing player prefabs int the network lobby sample. 0 Answers
Unity Network problems, updating an individual object 0 Answers
How can I spawn a GameObject on all players in my multiplayer game? 0 Answers
Can i make multiplayer game without unity multiplayer service ? 1 Answer