AIgamer
Sign in
๐Ÿ Home๐Ÿ“ฐNews๐ŸงฐResources๐ŸŽฎGames๐Ÿ“˜Guides๐Ÿ†GOTW
๐Ÿ“ฐNews๐ŸงฐResources๐ŸŽฎGames๐Ÿ“˜Guides๐Ÿ†GOTW
Get the weekly emailSign in
AIgamer
๐Ÿ Home๐Ÿ“ฐNews๐ŸงฐResources๐ŸŽฎGames๐Ÿ“˜Guides๐Ÿ†GOTW
New storiesWeekly roundupsTopicsSubmit your gameHow we report
Get the weekly email

๐Ÿ†AI Game of the Week

WK 44

Three Quake

Play it

Made a game with AI? Submit it for next week

โœ‰๏ธWeekly email

The week's top stories and the AI Game of the Week, every Monday. Free.

๐Ÿ”ฅMost read this week

  1. 01Solo developer builds monster-hunting RPG After the Wind with Claude Code and Codex
  2. 02Claude Code built cozy planet-mowing game Mowtopia in about 2 days, developer says
  3. 03Google DeepMind unveils Genie 4 with native audio and 2-minute consistent worlds
  4. 04Ramen open-sources Autopilot, an AI agent that playtests Unreal, Unity and Godot games
  5. 05Roblox says over 80% of top 100 games used AI in the past month
AIGamer: the front page for people making games with AI.
Weekly roundupsSubmit your gameHow we reportContactX (@aigamergg)PrivacySubmission terms

Home โ€บ Resources โ€บ AI NPC tools

Un

Unity ML-Agents

Train game agents and NPCs with machine learning in Unity

Compiled by Hitesh K ยท Prices checked 3 November 2026

Visit Unity ML-Agents โ†’Source code
Unity ML-Agents preview
Image: Unity Technologies (GitHub)
Best for
Unity developers who want NPCs or bots that learn behavior through training rather than hand-written scripts
Makes
Trained neural-network behaviors for agents and NPCs that run inside Unity scenes
Made by
Unity Technologies
Where you use it
Unity Editor, Windows, macOS, Linux
Engines
Unity
Pricing
Free, open source (self-hosted)
Free plan
Yes
Open source
Yes (Apache-2.0)
Export
Trained models are embedded back into the Unity scene and run through Unity's Sentis inference
Status
Available

Unity ML-Agents is Unity Technologies' open-source toolkit for training game characters with machine learning. You turn a Unity scene into a training environment and set up agents that gather observations through sensors, act, and are scored with rewards; a companion Python package does the actual training.

Unity's documentation lists PPO (the default) and SAC reinforcement learning, MA-POCA for cooperative multi-agent training, self-play for competitive games, curriculum learning, and two imitation learning methods, behavioral cloning and GAIL, that learn from demonstrations recorded in the Editor. The docs explain the toolkit through a hypothetical example: training a medic NPC in a war-themed multiplayer game. Trained models are embedded back into the scene and run through Sentis, Unity's inference engine.

The current package (version 4.2 in Unity's docs) needs Unity 6000.0 or later and Python 3.10. The install guide limits PyTorch to versions 2.1.1 through 2.8.0, because 2.9 and later break model export. ML-Agents is free under the Apache-2.0 license; GitHub shows the license as "Other" because the repo's LICENSE file is a short Apache notice rather than the full text. The most recent GitHub release, Release 23, is dated September 2, 2025.

For game developers, Unity's docs point to uses such as NPC behavior (including multi-agent and adversarial setups), automated testing of game builds and comparing design choices before release. It needs a separate Python setup next to the Editor and is built around Unity scenes. AIGamer has not tested it.

Limitation: Setup needs a matching Python stack: Python 3.10, PyTorch 2.1.1 to 2.8.0 (2.9 and later break model export), and the PyPI release (1.1.0) lacks some Python-side changes from the 4.x package

FAQ

Is Unity ML-Agents free?

Yes. It is open source under the Apache-2.0 license and free to use. You run training on your own machine.

Can ML-Agents make NPCs?

Yes. Unity's documentation uses training a non-player character as its main example. You define observations, actions and rewards, train a model, then embed it in the scene.

Which Unity and Python versions does ML-Agents need?

The 4.2 package docs say Unity 6000.0 or later, Python 3.10 (3.10.1 to 3.10.12) and PyTorch 2.1.1 to 2.8.0.

What training methods does ML-Agents support?

PPO and SAC reinforcement learning, MA-POCA for cooperative multi-agent training, self-play, curriculum learning, and imitation learning with behavioral cloning and GAIL.

Topics:UnityAI NPCs

Sources

Compiled by AIGamer from Unity ML-Agents's own pages and the sources below, checked 3 November 2026. We haven't tested Unity ML-Agents hands-on.

  1. Unity Documentation: ML-Agents package documentation (latest)
  2. GitHub (Unity Technologies): Unity-Technologies/ml-agents README
  3. GitHub (Unity Technologies): ml-agents LICENSE.md
  4. Unity Documentation: ML-Agents package 4.2 overview
  5. Unity Documentation: Install the ML-Agents Toolkit
  6. Unity Documentation: ML-Agents Overview
  7. GitHub (Unity Technologies): ML-Agents releases

Image: Unity Technologies (GitHub)

Written in our own words; quotes are marked and credited. How we report

Unity ML-Agents alternatives

  • AIAI TownOpen-source starter kit for a town of chatting AI charactersOpen source (MIT)
  • CoConvaiTalking AI characters for Unity, Unreal and the webFree plan (100 interactions a month); Indie Dev $29/month ($22/month billed yearly); higher tiers up to $1,199/month (as of October 2026)
  • InInworld AIVoice, speech and LLM APIs for AI charactersPay as you go (On-Demand, $0/month) with TTS-2 at $25 per 1M characters and speech recognition at $0.15/hour; monthly plans from $25 lower the rates (as of October 2026)
  • LLLLM for UnityRun local LLM characters inside UnityOpen source (Apache-2.0)
  • NoNobodyWhoLocal LLMs for Godot NPCs and other platformsOpen source (EUPL-1.2)
  • NVNVIDIA ACENVIDIA models and SDKs for on-device game charactersOpen source (MIT (Unreal plugins, Audio2Face-3D SDK); Apache-2.0 (Game Agent SDK); models under NVIDIA Open Model License or custom licenses)

Compare all 7 Unity ML-Agents alternatives โ†’

๐Ÿ“˜Guides

  • How to let coding agents playtest the games they build
  • Blockout first, art last
  • How to turn an AI picture into a rigged 3D game asset in 5 steps
  • How to let coding agents drive Unreal, Godot and Minecraft with MCP
  • How to teach coding agents Roblox Studio, Unreal and game servers with skill packs
All guides โ†’
Sign in
Sign in