This is the Complete Unity Developer - one of the most successful e-learning courses on the internet! Completely re-worked from scratch with brand-new projects and our latest teaching techniques. You will benefit from the fact we have already taught nearly half a million students game development, many shipping commercial games as a result.
You're welcome to download, fork or do whatever else legal with all the files! The real value is in our huge, high-quality online tutorials that accompany this repo. You can check out the course here: Complete Unity Developer
We add interactable user interface and scene loading to our previous Number Wizard guessing game code. (ref: UI_CUD)
Here are the lectures of the course for this section.
In this video (objectives)…
- Overview of this section.
- Focus on UI - adding buttons, text, images.
- Linking our button functionality with our code.
- Creating scenes and loading scenes.
After watching (learning outcomes)… Ready and raring to start this section.
In this video (objectives)…
- Reminder of the core guessing game mechanic.
- Presentation of our game flow through the main scenes.
- Discussion of theme and tone of the game.
After watching (learning outcomes)… Clear on the design objectives for the game.
In this video (objectives)…
- Add a button to our canvas.
- Add an image to our canvas.
- Adjust the stretch and anchor settings so that our UI assets are aligned how we want them to be even if the game is played at different aspect ratios or resolutions.
After watching (learning outcomes)… Capable of implementing UI anchor points works.
In this video (objectives)…
- Add mouse over and click effect to our button.
- Improve font quality using TextMesh Pro text for the button.
- Create 3 scenes, each of which has a button that can be used to load new scenes.
After watching (learning outcomes)… Create nice looking buttons that can be used for awesome functionality.
In this video (objectives)…
- Create public method to load the next scene.
- Add build index to scenes.
- Hook up start button with LoadNextScene() public method.
After watching (learning outcomes)… Create public method to load next scene, triggered from a button.
In this video (objectives)…
- Create new method to load straight to our first scene.
- Hook up all buttons to loading functionality.
- Load all scenes.
After watching (learning outcomes)… Load all scenes in our game using buttons.
In this video (objectives)…
- Examine our "spec" for the game screen.
- Implement all the buttons, text, images required for the game screen.
- Ensure all game objects are properly named and ready for action.
After watching (learning outcomes)… Implement UI elements required for our core game from our game design.
In this video (objectives)…
- Import our NumberWizard.cs code from previous section of the course.
- Assess what needs to be refactored / changed in order to have our code work with our user interface.
- Refactor the code including player input mechanism.
After watching (learning outcomes)… Refactor our code so that it is ready to hook up with our user interface.
In this video (objectives)…
- Hook up our buttons to the previously created methods.
- Link our UI text field to our code.
- Use ToString() to convert our integer into a string to be displayed in our text field.
After watching (learning outcomes)… Connect a variable in our code with a text field in our UI.
In this video (objectives)…
- Use Random.Range() for our guess to introduce randomness.
- Refactor our code to only have 1 place of calculating guess.
- Tweak our logic to prevent the computer from guessing a number already guessed.
After watching (learning outcomes)… Use Random.Range() to add randomness to the number guessed.
In this video (objectives)…
- Use Application.Quit() to create a quit button for our game.
- Add final text, colours and tweaks to the game.
- Build to PC, Mac, Linux Standalone.
After watching (learning outcomes)… Create a final PC / Mac / Linux Standalone build.
In this video (objectives)…
- We discuss namespaces in more detail.
After watching (learning outcomes)… A hangout where Ben and Rick talk about namespaces.