Unity ML-Agents

Open source · Apache-2.0

Unity ML-Agents

by Unity Technologies

Unity's toolkit for teaching game characters to play by trial and error instead of scripting them.

19.7k stars on GitHub, Oct 2026

Before you use it

This is classic machine learning, not a chat model. It trains behaviour, it does not write dialogue.

Why it's useful

You set up a scene, reward the behaviour you want, and it trains a small model that drives an enemy, a racing car or a test bot. Handy for opponents that feel less scripted, and for bots that hammer a level looking for exploits and balance problems.

What it needs

Unity and Python with PyTorch. Training is quicker with an NVIDIA GPU but runs on CPU.

The details

Price
Free
Licence
Open source (Apache-2.0)
Runs on
Windows, macOS, Linux
Made by
Unity Technologies
Category
Game DevelopmentModels
Tags
unityreinforcement learningnpcgame aipython

Image: Unity Technologies. Unity ML-Agents belongs to Unity Technologies; we just think it's worth knowing about.

More tools like this