Unity

From Robin

(Difference between revisions)
Jump to: navigation, search
(Installation)
(Installation)
Line 1: Line 1:
== Installation ==
== Installation ==
-
* Download and install Unity : [www.unity.com website]
+
* Download and install Unity : [https://www.unity.com website]
For coding in Unity and Python it is recommended to use Visual Studio Code but you can of course use your preferred IDE and editor.
For coding in Unity and Python it is recommended to use Visual Studio Code but you can of course use your preferred IDE and editor.

Revision as of 14:26, 27 October 2022

Contents

Installation

  • Download and install Unity : website

For coding in Unity and Python it is recommended to use Visual Studio Code but you can of course use your preferred IDE and editor.

  • Install Unity ML-Agents

In the Unity editor, go to window->package manager. Inside the package manager search for ML agents in the Unity Registry. Install the most recent ML Agents package.

Documentation

Unity ML-Agents Github Page Unity Documentation

Using Unity ML-Agents

  • Running your Unity Executable

You can run a Unity ML-Agents example in (1) editor mode, or you can (2) build a light weight executable of the your simulation. When starting to connect Python to Unity, make sure to open Unity by calling env = UnityEnvironment(filename=None, side_channels=[]) in your python script.

Notes on deterministic behavior

David's tips on getting deterministic timing

Personal tools
Front page