Hey everyone,
I’m having an issue with updating child widgets inside other widgets in Unreal Engine 5.
The Problem:
I have a base button widget (WBP_BaseButtonText), which is used inside multiple larger widget blueprints (e.g., WBP_SettingsPanel, WBP_StorePC).
When I try to use GetAllWidgetsOfClass(WBP_BaseButtonText), the array length is 0, meaning it’s not finding any of my buttons.
I need to change color of this widget instances (WBP_BaseButtonText) in all other widgets (e.g. WBP_SettingsPanel, WBP_StorePC)
My Setup:
- WBP_BaseButtonText is a simple UI widget that is used inside multiple larger widgets.
- The larger widgets (WBP_SettingsPanel, WBP_StorePC, etc.) are added to the viewport, but the buttons are only inside them (not directly added to the viewport).
- When I call GetAllWidgetsOfClass(WBP_BaseButtonText), it does not find any buttons.
What I’ve Tried:
- Using GetAllWidgetsOfClass() – Finds the larger UI widgets but not the buttons inside them.
- Checking if the buttons exist – They are correctly created inside the larger widgets, because they are visible in-game.
What I Need Help With:
How can I find and update all instances of WBP_BaseButtonText, even when they are inside other widgets?
What’s the best approach to update all instances of a shared widget used inside other widgets?
I hope everything is somewhat clear,
Thanks for any help!