Create a Dialog Box in Unity Part 3 - Versatile and Reusable

Offered By
Coursera Project Network
In this Guided Project, you will:

Understand the UnityEvent system to wire actions to button-clicks.

Understand coding principles for dynamically building a UI.

Understand and implement Inheritance and Interfaces in Unity C#.

Clock1.5 hours
BeginnerBeginner
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

In this one-hour, project-based course, we'll add code to an existing dialog box to make it much more versatile and reusable. This project involves building a custom dialog system that opens on trigger or click, dynamically wiring up GameObjects and behaviours to dialog box choices and making the game environment respond to a player's selection. The guided project will introduce you to the following Unity concepts: - Buttons - Triggers - Unity Events - Interfaces This is Part 3 of a three-part series on creating a good-looking, versatile and reusable dialog box for your game or other Unity application. Part 1 covered how to create a simple dialog box and Part 2 showed you how to use TextMesh Pro for great visual effects. This is a stand-alone guided project, but because this is a continuation of previous parts in the "Dialog Box" series, it is recommended that you complete part 1 before commencing this guided project. This series makes use of the poly-castle Unity project created in Create Keyboard Movement Mechanics with C# in Unity. It is a complimentary course to this guided project and, although not a prerequisite, is recommended for a more well-rounded understanding of the concepts presented herein. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

Video-game DevelopmentC sharp (C#) Programming LanguageUnity 3DUnityApplication development

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Introduction and License Activation

  2. Redesign the UI for Multiple Buttons

  3. Instantiate Prefabs in Code

  4. Allow Custom Button Labels

  5. Create a Trigger-Activated User Prompt

  6. Create a Component to Wire Actions to Choices

  7. Create and Configure Buttons on the Dialog Box

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.