Back to Writing
NOTESunityml-agentsreinforcement-learningmachine-learning

Unity ML-Agents - Getting Started (2020.08.30)

August 28, 2020Updated Feb 17, 2026

ML-Agents is a framework for training intelligent agents using reinforcement learning.

Installation:

  1. Install ML-Agents from the Package Manager
  2. Install Python and TensorFlow
  3. Train agents using training scripts

Features:

  • Policy networks for decision making
  • Curriculum learning
  • Multi-agent support
  • Integration with Unity

Example setup:

behaviors:
  ActionName:
trainer_type: ppo
hyperparameters:
batch_size: 32
learning_rate: 0.0003

With ML-Agents, game developers can create intelligent NPCs and game mechanics using machine learning.