Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice
  2. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

Help Wanted MLAPI while still supporting Local/Couch coop multiplayer

Discussion in 'Netcode for GameObjects' started by julcreutz, Aug 22, 2021.

  1. julcreutz

    julcreutz

    Joined:
    May 4, 2021
    Posts:
    9
    How would I go about supporting both local (couch coop) AND online multiplayer?

    Seeing as NetworkManager singleton's client is only meant to be one player, would I need to seperate implementations for local/online multiplayer?
     
  2. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    256
    Yeah at the moment you would need a separate implementation. We've removed the singleton restriction and with our next release you might be able to run multiple NetworkManager instances in the same application. But it won't be a fully supported workflow and might have some limitations.
     
  3. julcreutz

    julcreutz

    Joined:
    May 4, 2021
    Posts:
    9
    Gotcha.
     
  4. Neto_Kokku

    Neto_Kokku

    Joined:
    Feb 15, 2018
    Posts:
    1,012
    You can do it by separating the concepts of "player" from "character" so a player (representing a connection) owns and controls multiple characters.
     
    luke-unity likes this.
unityunity