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. Dismiss Notice

HandleTransform netId:4 is not for a valid player

Discussion in 'Multiplayer' started by pKallv, Feb 29, 2016.

  1. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,120
    Can not really find this when i google, someone that can explain?

    It may have something to do with my current problem when i do the following:

    1) Have a player and a number of non-player objects
    2) Click, with player, on one or more non-player objects
    3) Creates a parent container with the objects that have been clicked
    4) Move the pack
    5) When drag ends, release the objects

    This works for a while but then after some time the objects that i move does not move on the other player. No error messages, except the one in the title.
     
  2. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    Ah this error. I had that a lot of times.

    Here's a quick breakdown:
    • All following procedures must be done on the server.
    1. Create an empty game object.
    2. NetworkServer.SpawnWithClientAuthority() that created object.
    3. Call on a [ClientRpc] and tell every game object you want as child be set under that game object.
    Let me know if you encountered this error.