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
On this page of the site you can watch the video online Unity ML-Agents: Using the Ray Perception Sensor with a duration of hours minute second in good quality, which was uploaded by the user Ludic Worlds 10 April 2026, share the link with friends and acquaintances, this video has already been watched 851 times on youtube and it was liked by 44 viewers. Enjoy your viewing!