Exercise 3: Loading projects and packages - VapaaLassi/TAMKUnity2024 GitHub Wiki
Part 1: Downloading a complete project from the Asset Store
You might need to make an Unity account to be able to download anything from the Asset Store
- Either click the Asset Store tab or go directly to
- Find the Roll-a-ball project from the Asset Store (https://assetstore.unity.com/packages/essentials/tutorial-projects/roll-a-ball-tutorial-complete-77198)
- Click the big button to add it to your assets.
- Create a new Unity project
- Open up up Package manager from
Window - Package Manager
- Choose
My Assets
from the dropdown menu - Find Roll-a-ball from the list and download/import it.
- Press play and make sure that you can control the game with arrow keys.
If you can't control the game, you might need to go to the top options bar and choose Edit->Project Settings-> Physics and set Simulation Mode to Fixed Update. For some reason on TAMK machines, it defaults to "Script"
Part 2: Downloading assets to an existing project
- Don't make a new project, keep the roll-a-ball scene open.
- Download new sound assets from the Asset Store and listen to them through the Project window to see what you got.
Examples:
https://assetstore.unity.com/packages/audio/music/8bit-music-062022-225623
https://assetstore.unity.com/packages/audio/ambient/sci-fi/sci-fi-ambiances-234344
https://assetstore.unity.com/packages/audio/sound-fx/free-sound-effects-pack-155776
https://assetstore.unity.com/packages/audio/sound-fx/rpg-essentials-sound-effects-free-227708
https://assetstore.unity.com/packages/audio/sound-fx/shooting-sound-177096
https://assetstore.unity.com/packages/audio/sound-fx/free-casual-game-sfx-pack-54116#content
Part 3: Setting up the farm scene in Unity.
Before you start this part, make sure to close any Unity windows/projects you have open. Having Unity Hub open is fine.
For exercise 4, we need to download a project and patch it with a Unity package. The project download is a bit out of date, but that is often the case with tutorials or even some actual projects.
We can download the base of the project from here: https://github.com/gordon2012/tut-unity-barnblaster
- Click on the green Code-button and click "download ZIP".
- Extract the ZIP on your computer
- Then click
File -> Open Project
in the Unity toolbar. - Add the new project by navigating to the folder where you extracted the ZIP-file. Go into the folder until you see folders called Assets, Library, Packages etc.
- When you click Select Folder, it should start loading the project, and ask about updating it to a newer Unity version. Usually this would be a very dangerous thing do, and you should definitely make backups before proceeding, but this time we will just say yes.
- Find the scenes folder in the Project tab and open the Main scene. You should see a grassy ground, but everything else is missing. The project is broken, but no worry, we can download a package to fix that.
- Download the package from here
- Then find the package from your downloads folder and double-click it. It should automatically open up Unity and show a popup that has all the changes that will happen. Press OK.
- You should now see tractors and the barn appear. And if you press play, the scene should start moving and pressing Space will launch an animal. All of this will make a bit more sense when we move on to Exercise 4.