- Learn Unity ML-Agents:Fundamentals of Unity Machine Learning
- Micheal Lanham
- 280字
- 2021-08-13 15:58:24
Running a sample
Unity ships the ML-Agents package with a number of prepared samples that demonstrate various aspects of learning and training scenarios. Let's open up Unity and load up a sample project and get a feel for how the ML-Agents run by following this exercise:
- Open the Unity editor and go to the starting Project dialog.
- Click the Open button at the top of the dialog and navigate to and select the ML-Agents/ml-agents/unity-environment folder, as shown in the following screenshot:

Loading the unity-environment project into the editor
- This will load the unity-environment project into the Unity editor. Depending on the Unity version you are using, you may get a warning that the version needs to be upgraded. As long as you are using a recent version of Unity, you can just click Continue. If you do experience problems, try upgrading or downgrading your version of Unity.
- Locate the Scene file in the Assets/ML-Agents/Examples/3DBall folder of the Project window, as shown in the following screenshot:

Locating the example scene file in the 3DBall folder
- Double-click the 3DBall scene file to open the scene in the editor.
- Press the Play button at the top center of the editor to run the scene. You will see that the scene starts running and that balls are being dropped, but the balls just fall off the platforms. This is because the scene starts up in Player mode, which means you can control the platforms with keyboard input. Try to balance the balls on the platform using the arrow keys on the keyboard.
- When you are done running the scene, click the Play button again to stop the scene.
推薦閱讀
- 公有云容器化指南:騰訊云TKE實戰與應用
- 計算機組成原理與接口技術:基于MIPS架構實驗教程(第2版)
- 數據庫原理及應用教程(第4版)(微課版)
- 復雜性思考:復雜性科學和計算模型(原書第2版)
- SQL Server 2008數據庫應用技術(第二版)
- SQL查詢:從入門到實踐(第4版)
- Creating Dynamic UIs with Android Fragments(Second Edition)
- Microsoft Power BI數據可視化與數據分析
- Spark大數據編程實用教程
- INSTANT Android Fragmentation Management How-to
- Oracle數據庫管理、開發與實踐
- SQL Server 2012實施與管理實戰指南
- 聯動Oracle:設計思想、架構實現與AWR報告
- Python 3爬蟲、數據清洗與可視化實戰
- Unity Game Development Blueprints