Challenge: Add a bonus scene

Tutorial

·

foundational

·

+10XP

·

90 mins

·

(2011)

Unity Technologies

Challenge: Add a bonus scene

Create a brand new unique bonus scene to your project to make your portfolio stand out.

1. Overview

All of the optional challenges for this final section of the Pathway are about adding a bonus scene to your project.

This is your opportunity to create something unique that you can use as a portfolio piece.

You can create anything you want in this bonus scene! Here are three ideas to serve as starting points:

  • Option 1: Combine all of your 3D rooms together.
  • Option 2: Create your own personal art gallery.
  • Option 3: Create a third-person adventure scene.

There is more guidance on each of these options in the following steps.

Each of these options requires a substantial amount of work, and each will be challenging in a different way. If you’re not interested in doing any of these challenges, skip to the end of this tutorial to mark it as complete.

2. Set up the bonus scene

If you choose to create a personalized bonus scene in your project, you’ll need to make it accessible from the Main Menu scene.

Instructions

1. If the 0_MainMenu_Scene is not already open, open it now.

2. In the Hierarchy window, expand Canvas > Panels_SceneSelect > Panel_SceneList and select the Bonus_Button GameObject.

3. At the top of the Inspector window, use the checkbox to activate the GameObject and make the Bonus_Button visible in the scene.

4. Return to the Build Profiles by selecting File > Build Profiles, then drag the 6_Bonus_Custom_Scene to the bottom of the Scene List.

3. Option 1 - Combine all of your 3D rooms together

You’ve created three separate 3D rooms that each showcase a distinct element of creating with Unity:

1. The kid’s room that showcases 3D physics.
2. The kitchen that showcases audio.
3. The living room that showcases programming and interactivity.

Why not combine all of those rooms together so that the player can explore the whole house?

In order to transfer the elements from each scene into another scene, you’ll have to strategically create prefabs of each room and make sure to include only the objects you need.

Instructions

1. Open the kid’s room scene with the bouncing ball and the building blocks.

2. In the Hierarchy window, use Ctrl (macOS: Cmd) to select all the GameObjects you want to bring into your bonus scene — that should be all GameObjects except for the Environment, Directional Light, and Camera.

3. Right-click the selected GameObjects and select Create Empty Parent to group them under a single GameObject, then rename the new parent GameObject something like “Room_1”.

4. Drag Room_1 into your My Prefabs folder for re-use in the bonus scene later.

5. Repeat all the steps above for the other two rooms to create two more prefabs, Room_2 and Room_3.

6. Open the 6_Bonus_Custom_Scene, then drag all three prefabs into the scene, aligning them perfectly so that each doorway leads perfectly into the next room.

Important: Remember that you can only have one Camera GameObject in the scene, and there is already one attached to the player from the living room. If you have extra cameras, you’ll need to delete them.

7. Customize your newly combined rooms to your liking. Here are a few ideas for you to consider:

  • Rotate the doors so that the player can easily move between the rooms or add the required components so that the doors open when the player approaches.
  • Add collectibles throughout the house.
  • Move the player into the kid’s room so that they can see the bouncing ball hit the blocks.
  • Use some custom scripts to give the ball a bouncing sound and the falling blocks an impact sound.
  • Add the UI from the 2D project that tracks the number of remaining collectibles.
  • Add a VFX when the user obtains all the collectibles.
  • Add your own ideas that would make this experience more interesting!

4. Option 2 - Create your own personal art gallery

A 3D gallery where you’ve curated every piece of art is a fun way to share your interests with others. You can include 3D models that you like, images that you think are beautiful, pictures from your life, or anything else you’d want to share.

To fill the gallery with custom art, you can find models and images from the Asset Store or from other sites.

Instructions

1. Open the 6_Bonus_Custom_Scene.

2. From Prefabs > Rooms, drag the 04_Gallery prefab into the scene.

3. Enter Play mode to preview the empty gallery. Use the mouse and arrow keys to look around.

4. Fill the gallery with 3D models and interesting 2D artwork. Here are a few ideas for you to consider as you complete the gallery:

  • Use the Asset Store to download and import interesting models into the scene.
  • Use other sites for free 3D models like Free3D, Open Game Art, or Kenney.
  • Import your own pictures or artwork into the scene by dragging them from your file explorer into the Project window.
  • Add text descriptions next to certain pieces of art.
  • Add a trigger zone that detects when the player approaches a piece of art and plays a voiceover narrative describing the art.

5. Option 3 - Create a 3D adventure game

You can create a new 3D adventure minigame with your own environment and objective.

You can use the simple characters we provided for the living room, the robot character from the initial Starter_Scene you tested, or even download a new 3D character from the Asset Store.

Instructions

1. Open the 6_Bonus_Custom_Scene.

2. Add a character to the world.

  • To use one of the simple living room characters, drag one in from the Prefabs > Characters folder and set up your PlayerController script and camera just like you did in the living room scene.
  • To use the Robot character, go to Source Files > SpaceRobotKyle > Prefabs, and drag the Player prefab into your scene. This prefab already comes equipped with a camera and player controller.

3. If you want, download additional environment assets from the Asset Store to fill up your scene.

Note: If assets you import have bright pink textures, follow these instructions to upgrade your materials to the Universal Render Pipeline (URP).

4. Complete your 3D adventure game. Here are a few ideas for you to consider as you complete the scene:

  • Come up with a unique objective; what is the player’s goal?
  • Add collectibles throughout the environment and the UI to track how many collectibles remain.
  • Add ambient audio to the scene to bring it to life.
  • Add some custom programming and interactivity to the game to make it unique.

6. Proceed to the next tutorial

No matter if you chose to tackle a single challenge, complete them all, or skip them, you're set for the next step.

Instructions

Proceed to the next tutorial where you'll use Unity’s Recorder package to capture a video of your project directly from the Editor.

Complete this tutorial