Lesson 1: Unity Project Setup
In this first lesson, you'll set up a new Unity project specifically designed for Reinforcement Learning simulation.
๐ฏ Learning Objectivesโ
By the end of this lesson, you'll have:
- A properly configured Unity project
- Essential packages installed
- Project structure organized for RL development
๐ Prerequisitesโ
Before starting, ensure you have:
- Unity 2022.3 LTS installed
- Unity Hub configured
- Basic understanding of Unity interface
๐ ๏ธ Step-by-Step Setupโ
1. Create New Projectโ
- Open Unity Hub
- Click "New project"
- Select "3D (Built-in Render Pipeline)"
- Name your project: "AntsSaga_RL"
- Choose a location and click "Create project"
2. Configure Project Settingsโ
Build Settingsโ
- Go to
File > Build Settings - Select "PC, Mac & Linux Standalone"
- Choose your target platform
- Click "Switch Platform"
Player Settingsโ
- In Build Settings, click "Player Settings"
- Set Company Name: "MLVisual"
- Set Product Name: "Ants Saga RL"
- Set Version: "1.0.0"
3. Install Essential Packagesโ
Package Managerโ
- Go to
Window > Package Manager - Switch to "Unity Registry"
- Install the following packages:
- Input System (for agent controls)
- Cinemachine (for camera management)
- TextMeshPro (for UI text)
Custom Packagesโ
- In Package Manager, click the "+" button
- Select "Add package from git URL"
- Add:
com.unity.ml-agents(if available)
4. Organize Project Structureโ
Create the following folder structure in your Project window:
Assets/
โโโ Scripts/
โ โโโ Agents/
โ โโโ Environment/
โ โโโ Managers/
โ โโโ Utils/
โโโ Prefabs/
โ โโโ Agents/
โ โโโ Environment/
โ โโโ UI/
โโโ Materials/
โโโ Textures/
โโโ Scenes/
โ โโโ MainScene.unity
โ โโโ TrainingScene.unity
โโโ Settings/
โโโ InputActions.inputactions
โโโ ProjectSettings.asset
โ Verificationโ
To verify your setup is correct:
- Check Package Installation: All packages should show "Installed" status
- Verify Folder Structure: All folders should be created and organized
- Test Scene Creation: Create a new scene and save it
๐ฏ Next Stepsโ
Once your project is set up:
- Proceed to Lesson 2: Environment Design
- Review Getting Started for troubleshooting
- Check Glossary for any unfamiliar terms
๐ก Tipsโ
- Save frequently: Use Ctrl+S to save your work
- Use version control: Consider setting up Git for your project
- Document changes: Keep notes of any custom configurations
Great! Your Unity project is ready for RL development. Let's move on to designing the environment!