HELP I am struggling with the MLAgents tutorial.

Hello! I am totally new to Python and C#. I am currently trying to follow this tutorial: and I am having Struggles with getting the C# Script to run properly.
I am not able to add any Agents or at least visual studio doesn’t recognize it as a class.

I don’t know if I am making much sense here, but help is greatly appreciated!

If C# is not recognising any ML Agents Class, that suggest that you have not fully Imported the ML Agents package into your Unity Project properly.

You need to ensure that the installation of com.unity.ml-agents package has been imported from the Package Manager. See the instructions for importing from the Package Manager. Your Project directory should then have a number directories of run time files including sensors, actuators and agents.

You should be able to create a file, and “using Unity.MLAgents” at the top of your script should work, and then you should be able then to create a new class that inherits from the Agent class and implement the Agent methods.

I have still this problem and I cant figure out. How did you solve this?

I had the same problem and I spent hours to figure it out. Visual Studio didn’t recognize anything related to Unity. But this helped me and I think it will work for you too (the answer from Geeky Quentin).
https://stackoverflow.com/questions/72841461/unity-namespaces-arent-available