marp | paginate | title |
---|---|---|
true |
true |
Module 1 |
- C# basics
- Unity basics (in 3d)
- Some programming
- Git basics
- A Module project
- One-on-one meetings with me
- Introduction
- Setup
- Unity basics 0: What is Unity?
- Unity basics 1: The Unity Interface
- Working on exercises & Module project
- (They're all preinstalled on your laptops already)
- Download Unity Hub
- Install the latest Unity LTS (long term support) version 2021.3.21f1
- Install Visual Studio Code, aka VS code
- See Tooltips: Unity and VS Code
- Install Discord
- (The video calls don't work well with the browser version!)
- During Stage 1, a new module project is introduced every module
- We will continuously work on it during the module
- Deadline for the project is the last day of the module
- The projects are showcased on that day
- Every project has three separate stages
- ⭐ The MVP (minimum viable product)
- ⭐⭐ Some extra feature included
- ⭐⭐⭐ Includes an advanced feature (which isn't necessarily introduced during the classes), or a feature of your own design
- you can choose which stage you aim to complete
For the first Module project, you will create a 3d model of a clock with ticking hour, minute and second indicators.
The project is separated into individual exercises.
- Install and setup all the tools needed and create your first 3D project for the course with the name
Module1Clock
. - This project will be worked on step by step in the coming exercises.
- Create a 3D model of a clock from Unity's primitives with three hands and 12 hour indicators.
- Create a hierarchy of GameObjects as seen on the left.
Clock
,Pivot
andHourIndicators
are Empty GameObjects.
- Unlike in the picture in a past slide, set all the indicators to 12. They will be rotated later with C# scripting.
- The indicators are all white for now - we set the materials later.
- Create three materials for the clock: White, Red and Black.
- Create a picture in your project's Assets folder and use it as a texture for White.
Create a prefab out of the clock and then create a duplicate of it into the scene.
Extra: Make the indicator a prefab, and make the others duplicates of it.
Make the clock hands move when time goes on.
⭐ Make the movement instantaneous: the second indicator moves once per second directly to the next position
⭐⭐ Make the movement smooth: the second indicator moves continuously at a rate of one full rotation per minute
⭐⭐⭐ Make the movement realistic: study how the hands of a real clock moves! The second indicator moves incrementally between fixed positions, but the movement is not instantaneous. Try to replicate this.
- Create a remote repository for your Module project with the Unity gitignore file. The repository should be named
ModuleProject1Clock
, or something along the lines. - Initialize Git in your Module project repository.
- Add remote (the one you just created), and pull the changes.
- Commit and Push your code to GitHub.