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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Unity Multiplayer Mirror - Can't spawn different player prefabs

Discussion in 'Multiplayer' started by fefecmm, Nov 29, 2021.

  1. fefecmm

    fefecmm

    Joined:
    Feb 28, 2020
    Posts:
    2
    Hello! I'm pretty new to Mirror and I'm trying to do what seems to be a pretty simple task: Make the host control player 1, and client control player 2.

    Well, I have two separate prefabs for player 1 and 2 (with separate proprieties), and all I want to do is make host spawn as player 1 and client spawn as player 2 automatically when they connect. I've been searching for solutions and I couldnt understand any of them (I'm pretty bad at programming tho :c ).

    Can anyone help me? Is there a simple and objective way to do it?
     
    Last edited: Nov 29, 2021