Make an Action Bar in Unity Part 1 - Modular Action System

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

Create a flexible action bar in Unity's UGUI system.

Write C# scripts for defining and activating actions through button selection and hotkeys.

Write C# scripts to manage cooldown timers and display visual feedback to the player.

Showcase this hands-on experience in an interview

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

Action bars are ubiquitous in gaming, from Diablo to League of Legends to Valorant, it has become the staple user interface for games that offer players multiple abilities and consumable items. In this one-hour, project-based course, you'll learn how to create an action bar from scratch. You'll learn how to set up the UI elements to create the action bar and its buttons, code a modular and versatile Action system and wire up a cooldown effect on your buttons. The guided project will introduce you to the following Unity concepts: - UI Toolkit - C# coding techniques including Inheritance. This is Part 1 of a 2-part series on creating an action bar for a Unity game. Part 2 covers adding appealing visual effects to the action bar and buttons, to give your game some "bling." This series makes use of the tropical island-themed Unity project first used in Create Animation Transitions in Unity (Intro to Animation 2). This compliments this guided project and, although not a prerequisite, is recommended for a more well-rounded understanding of the concepts presented herein.

Requirements

Working knowledge of C# and Unity.

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. Set Up the Action Bar UI

  3. Create an Action Component

  4. Create two Sample Actions

  5. Create an Action Button Component

  6. Create a Cooldown Component

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.