How to use Machine Learning AI in Unity! (ML-Agents)


🌍 Let’s learn how to get started unlocking the POWER of Machine Learning AI in Unity!
πŸ“¦ Unity Machine Learning Playlist:
🌍 Get my Complete Courses! βœ…
πŸ‘ Learn to make awesome games step-by-step from start to finish.

ML-Agents GitHub

Give your feedback on the forums:

01:22 Installation (Python, PyTorch, CUDA, ML-Agents)
10:10 New Unity Project

12:00 Create Agent

13:35 Agent Actions

17:21 Test Training

19:46 Agent Observations

24:10 Agent Reward

27:57 Heuristics Testing

29:38 Training

34:22 Use Trained Brain Model
40:04 Improve Brain Model
40:55 TensorBoard Visualization
43:25 Final Result

🌍 Get Code Monkey on Steam!
πŸ‘ Interactive Tutorials, Complete Games and More!

If you have any questions post them in the comments and I’ll do my best to answer them.

πŸ”” Subscribe for more Unity Tutorials

See you next time!

πŸ“ Support on Patreon
πŸ€– Join the Community Discord
πŸ“¦ Grab the Game Bundle at
πŸ“ Get the Code Monkey Utilities at

#unitytutorial #unity3d #unity2d


Hello and welcome, I am your Code Monkey and here you will learn everything about Game Development in Unity 2D using C#.

I’ve been developing games for several years with 7 published games on Steam and now I’m sharing my knowledge to help you on your own game development journey.

You can see my games at


– Website:
– Twitter:
– Facebook:



Comment List

  • Code Monkey
    November 28, 2020

    No doubt, cool! This is "CM"! He almost always has the most useful videos. (almost, only because the "inventory system" in my opinion is incomplete, uncritical bugs, and a lot of things need to be completed and added yourself, not even taking into account the graphic part) But all other "systems" are universal and work extremely reliably )))

  • Code Monkey
    November 28, 2020

    It’s big brain time. Looking forward to this one!

  • Code Monkey
    November 28, 2020

    I will be waiting for you always, soo thank you sir, for your learning. this means a lot to me.

  • Code Monkey
    November 28, 2020

    Really looking forward!!

  • Code Monkey
    November 28, 2020

    This channel is no doubt the next Brackeys!

  • Code Monkey
    November 28, 2020

    So hyped about this video!! Awesome topic and I can't wait to see your project man!

  • Code Monkey
    November 28, 2020

    πŸ’¬ Machine Learning AI in Unity!
    Lots of people requested this topic so here it is. It's a really awesome toolset and learning the basics in this video will enable making some really awesome scenarios.
    This was a ton of work to make in researching/testing/recording/editing so if you find it helpful please hit the like button!

Write a comment