This guide will walk you through the steps to deploy our game project from GitHub to your local Mac machine.
- GitHub Desktop: Download and install from here.
- Unity Hub: Download and install from here.
- Unity Editor (Version 2022.3.11f): You can install this version through Unity Hub once it's set up.
- Open GitHub Desktop.
- Click on
File
>Clone Repository...
. - Choose the respective repository (our game project).
- Choose a suitable location on your Mac to store the project files.
- It's recommended to name the folder same as the repository name for clarity, but it's optional.
- Click the
Clone
button. - Once the process completes, the project will be cloned to your machine.
- Launch Unity Hub.
- On the left pane, select
Projects
. - At the top-right corner, click on
Add
. - Choose
Add project from disk
. - Navigate to and select the folder where you just cloned the project.
- Click
Add Project
. - The game project will now be listed in your Unity Hub, and you can open and edit it directly from there.
- Click to open the project in Unity Editor.
- Navigate to the
Assets > Scenes
folder, then open theGame
scene file. - Switch to the
Game
window (located just under thePlay
button at the top). Change the aspect ratio to Full HD (1920x1080) for optimal display. - Click the
Play
button at the top of the screen to test the game.
Tips: For a larger game view during testing, switch from Play Focused
to Play Maximized
.