docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Get started

    The ML-Agents Toolkit contains several main components:

    • Unity package com.unity.ml-agents contains the Unity C# SDK that will be integrated into your Unity project.
    • Two Python packages:
      • mlagents contains the machine learning algorithms that enables you to train behaviors in your Unity scene. Most users of ML-Agents will only need to directly install mlagents.
      • mlagents_envs contains a set of Python APIs to interact with a Unity scene. It is a foundational layer that facilitates data messaging between Unity scene and the Python machine learning algorithms. Consequently, mlagents depends on mlagents_envs.
    • Unity Project that contains several example environments that highlight the various features of the toolkit to help you get started.

    Use the following topics to get started with ML-Agents.

    Section Description
    Install ML-Agents Install ML-Agents.
    Sample: Running an Example Environment Learn how to run a sample project.
    More Example Environments Explore 17+ sample environments.
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)