Hello,
tl;dr
skip to the comment added below.
By embedded I mean :
In level blueprint I create UMG widget Main Menu.
If the Profile button in Main menu is clicked, I create UMG widget Profile.
(So Main Menu is behind the profile widget now)
Some buttons in Profile widget are giving me problems.
The UMG widget Profile has some buttons, text objects and borders with text children in it. Two of the buttons (yes and no), and a border with a child, are scaled to 0 by default (with no animation selected) as I only want them to be displayed when a specific button is clicked.
That specific button is “Create New”. When it’s clicked I play an animation which scales up the border (zorder 4) “yes” and “no” buttons (zorder4).
The “yes” and “no” buttons are set to visible and are enabled by default. Their visibility and enable properties are never changed anywhere. I’ve verified . I checked all animations to make sure it’s never changed.
The problem:
When I hover the mouse cursor over the “yes” and “no” buttons the buttons light up. But when I click on them nothing happens.
I tried setting their zorder to 10. They still light up when hovered over, but don’t trigger the onclicked/onpressed event, or depress when clicked on.
Is there a limit to how many times you can nest a UMG widgets?
Edit: Apparently the order they’re listed in the canvas is important. Say if I have a border and a button set to the same Zorder. If the button comes before the border in the list, the button will be behind the border. Moving the button after the border allows it to be shown.
What’s the reason for having canvas list order and zorder both affect an object’s sort order?
Thanks in advance!