Search Unity

Question Replacing prefab error (Mirror / networking)

Discussion in 'Prefabs' started by Delvarn, Feb 27, 2021.

  1. Delvarn

    Delvarn

    Joined:
    Apr 6, 2020
    Posts:
    10
    Hello,

    I'm using Mirror in my (test) game and have so far set up the lobby system and chat box.

    When the host sets up the game its working fine and then whenever a 2nd client joins, it shows both playerPrefabs UIs on both screens and then the host is unable to send chat messages, click 'ready' or generally do anything. The client is able to but still shows both player's UI on its screen.

    The message I get in the console is:
    Code (CSharp):
    1. Replacing existing prefab with assetId 'XXXX'. Old prefab 'RoomPlayer', new prefab 'RoomPlayer'.
    I assume something is going wrong when instantiating the prefabs or with authority but I'm stuck. Any ideas?

    Thanks in advance,
     
  2. nopogo

    nopogo

    Joined:
    Sep 9, 2012
    Posts:
    25
    after updating my project to unity 2020.2f1 and the latest version of mirror I am facing the same errors