# Unity ML-Agents Toolkit

> An open source toolkit that turns Unity scenes into environments for training game and simulation agents with reinforcement and imitation learning.

Source: https://talira.ai/catalog/unity-ml-agents-toolkit-tk6bd28y
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / ml / reinforcement learning](https://talira.ai/categories/ai/ml/reinforcement-learning)
- Licence: Apache-2.0[^2]
- Backed by: [Unity](https://talira.ai/orgs/unity.md)
- Funding: public company (NYSE:U)[^3]

The Unity ML-Agents Toolkit lets games and simulations built in [Unity](https://talira.ai/catalog/unity-t8tpwkvp.md) serve as environments for training intelligent agents. A C# package instruments a scene (agents with sensors, actions and rewards, behaviors shared between agents, recorded demonstrations), and a Python package trains them with reinforcement learning, imitation learning or other methods, with Gym and PettingZoo interfaces. Trained models are embedded back into the scene to run through Unity's inference engine, for uses such as controlling NPC behavior, automated testing of game builds and evaluating design decisions.

## Links

- Website: https://unity.com/products/machine-learning-agents
- GitHub: https://github.com/Unity-Technologies/ml-agents
- Docs: https://docs.unity3d.com/Packages/com.unity.ml-agents@latest

## Problems it solves

- train game characters to behave intelligently with reinforcement learning instead of scripting them
- use my Unity game as a simulation environment for training an AI agent
- test a game build automatically with agents that learn to play it

## Features

- turns any Unity scene into a learning environment
- agents, behaviors, sensors and recorded demonstrations defined in C#
- Python trainers with Gym and PettingZoo interfaces
- trained behaviors embedded back into the scene for inference

## Limitations

- The C# package only instruments a scene: training runs in the separate Python package[^1]
- Unity's in-editor analytics collect usage data passively[^1]

## Trust

Overall: 0.59 out of 1.
Signals: maintenance 0.52, adoption 0.86, momentum 0.68, community 0.90, backing 0.55, extensibility 0.00.

- last commit 31 days ago
- 10 commits in the last 90 days
- latest release release_23_tag 15 months ago
- 19.9k GitHub stars
- 180 contributors
- backed by Unity
- funding: public company (NYSE:U)

## Related

- Works with [Unity](https://talira.ai/catalog/unity-t8tpwkvp.md)

## Sources

[^1]: https://github.com/Unity-Technologies/ml-agents/blob/develop/com.unity.ml-agents/Documentation~/index.md (checked 29 Nov 2026)
[^2]: https://github.com/Unity-Technologies/ml-agents/blob/develop/LICENSE.md (checked 29 Nov 2026)
[^3]: https://data.sec.gov/submissions/CIK0001810806.json (checked 23 Nov 2026)
