Unity ML-Agents: Using the Ray Perception Sensor

Publié le: 10 avril 2026
sur la chaîne: Ludic Worlds
851
44

In this tutorial, I show you how to add a 'Ray Perception Sensor 3D' to your ML-Agents project in Unity. Building on the 'Turtle Agent' project from my "Get Started with ML-Agents" series, we replace the goal position observations with a Ray Perception Sensor, configure its settings, and run a new training session.

📀 Get the completed Unity Project from here:   / project-source-155239695  
📜 To run a training session, use these commands: https://github.com/LudicWorlds/ml-age...

→ Next Video • Coming Soon!
← Previous Video • Get Started with ML-Agents in Unity - Part 6: Inference & Training Stats:    • Get Started with ML-Agents in Unity - Part...  

🎓 Get Started with ML-Agents in Unity:    • Get Started with ML-Agents in Unity  

💬 Join our Discord community (free!):   / discord  


▬ Support My Work ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

❤️ Support me on Patreon:   / ludicworlds  
☕ Buy me a coffee: https://ko-fi.com/ludicworlds

Thank you for your support!


▬ Timestamps ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

0:00 - Intro
1:14 - Adding the Ray Perception Sensor
2:14 - What is a Ray Perception Sensor?
2:57 - Why use a child GameObject?
4:16 - Configuring Detectable Tags
4:45 - How ray observations work
6:24 - Updating the TurtleAgent script
7:15 - Updating Behavior Parameters
8:20 - Sensor settings
11:45 - Training the agent
12:55 - Importing the trained model
13:30 - Testing in inference mode
14:30 - Comparing training results
15:47 - Outro


▬ Useful Links ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

► ML-Agents GitHub Repo: https://github.com/unity-technologies...
► ML-Agents documention: https://docs.unity3d.com/Packages/com...
► ML-Agents docs - RayPerceptionSensor: https://docs.unity3d.com/Packages/com...


▬ Credits ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

► Music by - CO.AG Music:    / @co.agmusic  

#unity #ai #mlagents #reinforcementlearning


Sur cette page du site, vous pouvez voir la vidéo en ligne Unity ML-Agents: Using the Ray Perception Sensor durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Ludic Worlds 10 avril 2026, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 851 fois et il a aimé 44 téléspectateurs. Bon visionnage!