Setting Up Unity
Installing Unity Hub
Unity Hub is the central management tool for Unity installations, projects, and updates. Setting up Unity properly begins with installing Unity Hub:
Installation Steps:
- Visit the Unity Download page
- Click "Download Unity Hub"
- Run the installer and follow the on-screen instructions
- Launch Unity Hub after installation
- Sign in with your Unity account (or create one if you don't have an account)
Unity Licensing:
Unity offers different license options:
- Personal - Free for beginners, hobbyists, and small studios (with revenue/funding below $100K)
- Plus - Paid subscription with more features and higher revenue threshold
- Pro - Full-featured version for professional developers and larger teams
- Enterprise - Custom solutions for large organizations
For learning purposes, the Personal license is perfectly suitable and provides full access to the engine features.
Installing Unity Editor
After setting up Unity Hub, you'll need to install the Unity Editor itself. Unity allows you to have multiple versions installed simultaneously:
Installing Unity Editor:
- Open Unity Hub
- Navigate to the "Installs" tab
- Click "Add" to install a new Unity version
- Select the latest LTS (Long Term Support) version for the most stable experience
- Select modules to install with Unity:
- Microsoft Visual Studio - Recommended IDE for C# development
- Build Support modules - Select platforms you want to build for (Windows, Mac, Android, etc.)
- Documentation - Helpful for offline reference
- Standard Assets - Useful starter assets
- Click "Continue" and accept the license agreement
- Wait for the installation to complete (may take some time depending on your internet speed)
Setting Up Visual Studio for Unity
Visual Studio is the recommended IDE for Unity C# development. It provides excellent debugging capabilities and tight integration with Unity:
Configuring Visual Studio:
- If you installed Visual Studio with Unity, it should be automatically configured
- If you have an existing Visual Studio installation:
- Make sure the "Game Development with Unity" workload is installed
- In Unity, go to Edit > Preferences > External Tools
- Set "External Script Editor" to Visual Studio
- For Visual Studio Code users:
- Install the C# extension
- Install the Unity Debugger extension
- In Unity, set "External Script Editor" to Visual Studio Code
Creating Your First Unity Project
Now that you have Unity Hub and the Unity Editor installed, you can create your first project:
Project Creation Steps:
- Open Unity Hub
- Click the "New" button in the Projects tab
- Select a template:
- 2D - For 2D games (sprites, 2D physics)
- 3D - For 3D games (standard rendering)
- URP (Universal Render Pipeline) - For optimized graphics across multiple platforms
- HDRP (High Definition Render Pipeline) - For high-end visuals (PC/console)
- If you're a beginner, start with a "3D" or "2D" template
- Name your project and select a location
- Click "Create" to generate the project
Project Structure:
Unity creates a standard folder structure for your project:
- Assets - Contains all project files including scripts, models, textures, etc.
- Packages - Contains Unity packages (modular features)
- ProjectSettings - Contains project-specific settings files
- Library - Contains cached data (don't modify directly)
Unity Interface Overview
Once your project is created, you'll be presented with the Unity Editor interface. Here's a quick overview of the main windows:
Main Unity Windows:
- Scene View - Where you build and edit your game environment
- Game View - Shows how your game will look when played
- Hierarchy - Shows all GameObjects in the current scene
- Project Window - Shows all assets in your project
- Inspector - Shows properties of the selected GameObject or asset
- Console - Shows logs, warnings, and errors