Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Object glitch when spawned on the client

Discussion in 'Multiplayer' started by Michael_Waltham, Sep 2, 2015.

  1. Michael_Waltham

    Michael_Waltham

    Joined:
    Aug 20, 2014
    Posts:
    31
    When I spawn an object on the network, I Instantiate it on the server and then use NetworkServer.Spawn to notify all clients to spawn the object.

    However, when this object (a projectile to be precise) is eventually spawned on the client side, it seems to be spawned at the wrong position for a split second and then quickly correct itself and move to the correct position as is reflected by the server. Is there something I am not doing? Is this normal?
     
  2. HugoZandel

    HugoZandel

    Joined:
    Mar 11, 2014
    Posts:
    52
    I'm experiencing the same thing. It looks like the objects are spawned at 0,0,0. This is problematic because at 0,0,0 in my game, there's an object that kills characters. I would recommend shifting everything in your scene.