Creating a Selection Widget in Unreal C++

  Рет қаралды 1,740

Scripted Adventure

Scripted Adventure

Күн бұрын

Welcome to a comprehensive overview on building a versatile selection widget in Unreal Engine using C++ and Blueprints! 🚀
In this video, we dive deep into creating a user-friendly and adaptable selection widget, ideal for applications in game settings or character creation interfaces. This tool allows for swift swapping of options, such as different game settings or body parts in a character creator, enhancing the user experience in your Unreal Engine projects.
👨‍💻 What You'll Learn:
Crafting a selection widget in C++
Incorporating it into the Unreal Engine's Blueprint system
Practical use cases in game settings and character customization
🔧 Key Topics Covered:
Setting up the base: Creating a C++ class inherited from CommonUserWidget (with alternative options if you're not using CommonUI).
Essential Functions: Constructor setup, NativeConstruct, and overriding functions.
Adding Interactivity: Methods for managing selection options - Clear, AddOption, SetCurrentSelection, and navigation functions.
Broadcasting Changes: Implementing OnSelectionChange event for responsive UIs.
Custom Navigation: Overriding default navigation for keyboard and controller support.
The Visual Aspect: Linking C++ variables to UI elements in the Widget Blueprint Editor.
Behind-the-Scenes Logic: Ensuring functional and responsive widget behavior.
Blueprint Implementation: Setting up a Blueprint widget based on the C++ class.
🔍 Topics Covered:
0:00 - Introduction
0:32 - Selection.h
4:44 - Selection.cpp
9:01 - Blueprint Widget
12:48 - Usage
🎨 Design & Interactivity:
Discover how to align UI elements in a horizontal box with customizable buttons and labels.
Learn to create a responsive widget with focus-based text style changes.
📌 By the end of this video, you'll be able to:
Understand the architecture of a selection widget in both C++ and Blueprints.
Implement this widget into any UI, like a pause menu, enhancing your game’s interactivity.
⏭️ Up Next: Stay tuned for our follow-up video, where we'll integrate these widgets into a complete settings menu.
👉 Don't forget to like, comment, and subscribe for more in-depth Unreal Engine tutorials!
#gamedev #ue5 #unrealengine #cpp #cplusplus #Blueprints #GameDevelopment #UIWidgets #Tutorial #GameDesign #Programming #Interactivity #Gaming
Get notified about new videos by hitting the 🔔 icon.

Пікірлер: 10
@JasonKarken
@JasonKarken 2 ай бұрын
Great tutorial, thanks for making C++ videos
@xwcott
@xwcott 2 ай бұрын
very useful as always and thank you for listening (:
@herrscheroflolly5255
@herrscheroflolly5255 Ай бұрын
Please more tutorials about make game menu with c++)
@drakouzdrowiciel9237
@drakouzdrowiciel9237 2 ай бұрын
👌
@WeirdGoat
@WeirdGoat 2 ай бұрын
Common UI is great, but also has some limitations. Do you know how to change Confirm and Cancel from Arrow keys and Space Bar to other keys? Thanks!
@ScriptedAdventure
@ScriptedAdventure 2 ай бұрын
The only way I am aware of is overriding the key down which involves using custom widgets for buttons as in unreal engine the space bar is hard coded to be an accept navigation in the NavigationConfig.
@nfrancisj2122
@nfrancisj2122 2 ай бұрын
Thanks for Sharing. Where did you implement the Controller Navigation? Is this done automatically?
@ScriptedAdventure
@ScriptedAdventure 2 ай бұрын
This is done in the OnNavigation function. The event is setup at 06:39 and the function itself at 07:53. Both controller and keyboard are then working automatically.
@nfrancisj2122
@nfrancisj2122 2 ай бұрын
@@ScriptedAdventure YES! Omg, this is so much easier than "OnAnalogueValueChange" Thanks!
@ScriptedAdventure
@ScriptedAdventure 2 ай бұрын
I'm happy to hear that it worked 🚀
Unreal Engine 5 Data Tables with C++
4:36
Scripted Adventure
Рет қаралды 1,5 М.
Blueprints vs C++ - Which One Should You Learn in 2021?
7:24
Nitrogen
Рет қаралды 226 М.
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 25 МЛН
UFC 302 : Махачев VS Порье
02:54
Setanta Sports UFC
Рет қаралды 1,4 МЛН
Why Unreal Engine 5.4 is a Game Changer
12:46
Unreal Sensei
Рет қаралды 976 М.
I almost RUINED my dream game
4:09
Overload
Рет қаралды 2,7 М.
Introduction to Common UI | Inside Unreal
2:41:30
Unreal Engine
Рет қаралды 120 М.
Enums considered harmful
9:23
Matt Pocock
Рет қаралды 193 М.
Making UIs With C++ in Unreal Engine, by Ben UI
32:40
JetBrains
Рет қаралды 20 М.
Why all your classes should be sealed by default in C#
11:43
Nick Chapsas
Рет қаралды 91 М.
Why you’re banned from owning this Starfield item
12:59
Gaming with Griff Griffin
Рет қаралды 7 М.
Need to Know Nodes in Unreal 5 Blueprints
48:59
Cason Quisenberry
Рет қаралды 65 М.