Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ML-Agent without Unity?

Discussion in 'ML-Agents' started by Eric_Player1, Oct 1, 2020.

  1. Eric_Player1


    Sep 16, 2020

    We have a multiplayer game (for example, 5v5) where the game is driven by the server (an in-house C# project). Unity for our game is purely for presentation (sending user inputs to and receiving game states from the server). We want to replace one of the players with AI if they were to disconnect.

    After investigating ML-Agent, we think it is an excellent eco-system/tool for creating ML-based agents, and we also like the fact that it integrates with OpenAI GYM out of the box.

    My question is, how hard would it be for us to use ML-Agent on the server-side where Unity not present. We found out that ML-Agent is pretty much dependent on Unity; most classes inherit MonoBehavior. Is it realistic for us to decouple it ourselves? Are there any other suggestions for our use case?

  2. jeffrey_unity538


    Unity Technologies

    Feb 15, 2018
    Hi Eric, thank you for reaching out. May I ask what server side game engine you would be using (if not Unity)? Also, feel free to contact me at to follow up.