Search Unity

Help Wanted My clients cannot see or edit the game in mirror networking

Discussion in 'Multiplayer' started by OhHelloBye, Jan 17, 2021.

  1. OhHelloBye

    OhHelloBye

    Joined:
    Aug 3, 2020
    Posts:
    22
    my code is very messy so its not clear but bassicly i am trying to make a random block generator currently in the x and y axis as i havent programmed it in the z axis as well yet but whenever you press space your supposed to make a new object appear but that only works for the host and the host is the only one that can see or edit the blocks and when the clients join they can see nothing. any help on this?
     

    Attached Files:

  2. OhHelloBye

    OhHelloBye

    Joined:
    Aug 3, 2020
    Posts:
    22
    in the very bottom you can see how i tried to instantiate stuff
     
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,719
    Where are you calling UpdateClientsPos on the server? You are calling it in Update, but it looks like you are only allowing Update to run on the client. Add debug.log statements to verify UpdateClientsPos is running on the server, and if not then there is your issue I believe.
     
  4. OhHelloBye

    OhHelloBye

    Joined:
    Aug 3, 2020
    Posts:
    22
    nevermind, it worked now. all you have to do is write ClientScene.RegisterPrefab(prefab here); idk where speccifically i did it in the void
     
unityunity