Adding and removing widgets in the viewport through C++ has been a mystery to me for a while, but after some diving into the UE5 documentation, I found a way that I quite enjoy.
In this video, I will show you how to create a widget, add it to the viewport, and remove it from the viewport, using just C++.
Links used for the video
Whispering-vinyl-loops-lofi-beats
--- Music by [RibhavAgrawal] on Pixabay.
Chapters
00:00 Set up your build file.
00:40 Create the Widget Walkthrough
Subscribe to keep up with the latest: / @keltickgamedev Wishlist Mathletics: https://store.steampowered.com/app/37...