This repository contains the source code for the ML Agent Shootair. The project is developed using Python, C# and Unity, and it requires Python and Conda for setup.
Before you begin, make sure you have the following installed on your machine:
- Python + Conda
- Microsoft Visual Studio C++ Build Tools(for Windows users)
Follow the steps below to set up the project on your local machine:
-
Install Unity Hub:
- Download and install Unity Hub from the official Unity website.
-
Clone the Project:
- Clone this repository to your local machine using Git:
git clone https://github.com/nico-byte/shootair.git
- Clone this repository to your local machine using Git:
-
Run Installation Script:
- The installation script will automatically clone the Unity ML Agents repo into the Packages folder inside the project and setup the python environment named mlagents via conda. Additionally it will check if PyTorch is working as expected.
- For Windows users:
- Open Anaconda Prompt.
- Navigate to the project directory using the
cd
command. - Execute the install script:
install.bat
- For Linux users:
- Open a terminal.
- Navigate to the project directory using the
cd
command. - Make the install script executable (if needed):
chmod +x install.sh
- Execute the install script:
./install.sh
-
Open Project in Unity Hub:
- Open Unity Hub.
- Click on the "Add" button to add the project folder.
- Select the project folder you cloned in step 2.
-
Install Unity Editor:
- When prompted, Unity Hub will detect the required Unity Editor version.
- Click on "Install" to download and install the specified Unity Editor version.
After completing the installation process, you can now open and work on the project using Unity Hub. Make sure to check for any additional project-specific instructions in the project documentation.
Feel free to reach out if you encounter any issues or have questions!