Tower Defense Starter Kit

Hello, all widgets used in the toolkit are stored in the main UI folder. Apart from the widgets listed under the subfolder ‘TowerConstructor’, all the remaining widgets are used either to display In-Game HUD or menu selection screens. You can display all of them through 3D widgets instead, but that will require the use of in-game actors with attached Widget Components. If you have not worked using widget components before, I’d suggest first going through the basics through some tutorials. Else, you can check out the ‘BP_GridCellDetector’ blueprint under the Gameplay Actors Folder as it uses a widget component to display the Tower Constructor (basically the set of buttons that allow you to create new towers when you click on a grid cell) UI elements in 3D space. Using a similar setup, you can essentially display other widgets as well.

Once you get that working, you can replace the code that adds 2D Widgets on to screen by something that spawns actors with 3D widgets. This is done through the ‘UpdateHUDState’ function in ‘BP_GameInstance’ blueprint. You can remove the existing logic (marked in red below) & instead spawn 3D widget actors to display the required UI elements.