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

Client cant see server's player

Discussion in 'Multiplayer' started by NoEscape0, Jun 17, 2014.

  1. NoEscape0

    NoEscape0

    Joined:
    Sep 29, 2012
    Posts:
    16
    When server starts it creates a player. After that a client connects to the server and Instantiate a player for himself.
    Each player create some new objects while playing the game.
    The problem is: client cant see server's player (but server's player can see client and all the objects it creates. client can see al the objects server creates).
    Player prefab and other prefabs it creates while the game have NetworkView on them.


    Somehow client do not upload info about server's player after connection to the server.

    How to fix it?
     
  2. NoEscape0

    NoEscape0

    Joined:
    Sep 29, 2012
    Posts:
    16
    btw: I googled that creating a player by the server (so the server is the owner) could fix the problem.
    But in that case I have no ide how to assign each player with each computer (now I use networkView.isMine to get this info), so how do I know which player i can use on which pc?
     
  3. Ziron999

    Ziron999

    Joined:
    Jan 22, 2014
    Posts:
    278
    this is information that is still missing to this day. does anyone have an answer to this? I would like to see a UNet tutorial from the dev's on this system because networkview is considered the old way to do things what is the new way to do this same thing correctly?
     
  4. Capn_Andy

    Capn_Andy

    Joined:
    Nov 20, 2013
    Posts:
    80