33
loading...
This website collects cookies to deliver better user experience
ml-agents
: ml-agents/Project/Assets/ML-Agents
folder under $PROJ_DIR/Assets
folder. The type or namespace name 'Input' does not exist in the namespace 'Unity.MLAgents.Extensions'
Unity-Technologies/ml-agents
repository but this was not copied to the project. So let's copy by going to Window
-> Package Manager
-> plus icon
-> Add package from disk
-> Select ml-agents/com.unity.ml-agents.extensions/package.json
. ml-agents/com.unity.ml-agents/package.json
and select the correct version according to the release notes.IInputActionAssetProvider
was not read by the compiler, so once I searched for the code and it looks like there is a macro flag MLA_INPUT_SYSTEM
which enables this to be read. This is only available using the Input System of 1.1.0-preview.3 according to this code.1.1.0-preview.3
in the Package Manager. You cannot preview this version unless you enabled preview in the steps above.You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.
Edit
-> Project Settings
-> Player
-> Other Settings
-> Configuration
-> Active Input Handling
-> Select Input Manager (Old)
instead of Input Manager (New)
. This asks you if you want to restart and so you restart it. The Both
setting doesn't get applied upon restart so you want to verify the setting after you restart Unity. If someone can tell me why that is, I'd be appreciated.release_18
2.1.0-exp1
0.5.0-preview
1.1.0-preview.3
33