Search Unity

How do I Unit Test Network Manager?

Discussion in 'Netcode for GameObjects' started by TheriaGames, May 12, 2022.

  1. TheriaGames

    TheriaGames

    Joined:
    May 23, 2021
    Posts:
    6
    Hey All,
    As a dev, I am all about testing my code. One of the major issues I've found is that the Network Manager doesn't seem exist in Edit Mode. I have worked my way around of this problem by creating unit tests with multiple game instances that use a "mock network". But this is becoming an impediment now that I am introducing more events to my code.

    1. Am I doing something wrong that Network Manager isn't showing up?
    2. Does anyone know how to instantiate the Network Manager in Edit Mode?