Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.12k stars 4.15k forks source link

No field in Agent(Script) to drag and drop Target GameObject #5242

Closed holohuang closed 2 years ago

holohuang commented 3 years ago

Describe the bug Though this issue may not be a bug but rather me lacking experience with Unity... I followed the guide in "Making a New Learning Enviroment" to the second step of "Final Agent Setup in Editor"

Drag the Target GameObject in the Hierarchy into the Target field in RollerAgent Script.

I searched for tutorial on Youtube and tried to do so but the mouse become banned icon on Inspector region. And found out that I don't even have the field to drag Target GameObject into like those in the tutorial.

↓The picture from tutorial The picture from my Unity

↓The screenshot from my Unity 圖片

I did some search for similar issue like this one and do found some error on my console 圖片 but the answer from another issue to those error seems out of date and not sure the relation with my main dragging problem.

Environment (please complete the following information):

Wish for hints pointing out where I made mistake, thanks you all!

andrewcoh commented 3 years ago

Hi @holohuang

The slot for the game object will not appear until your scripts have compiled, which can't happen since there are errors. Without seeing more of your code, it looks like you might be missing the using Unity.MLAgents;, using Unity.MLAgents.Sensors;, or Unity.MLAgents.Actuators;directives or are not inheriting from the Agent class.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in the last 28 days. It will be closed in the next 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically closed because it has not had activity in the last 42 days. If this issue is still valid, please ping a maintainer. Thank you for your contributions.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.