Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | pferft |
Hi everyone,
tapping on the “outside-button” opens a popup. The “inside-button” within that popup closes the popup. Now, tapping on the “outside-button” again opens the popup again just as it should, but the “inside-button” within isn’t shown anymore… it’s there – I can close the popup again – but it’s not visible (unless I click at its empty spot, because its click-animation is then shown again anyway).
The “inside-button” is a separately created scene I then put into the popup-scene via “Instance Child Scene”.
Of course it should appear every time I re-open the popup. What could be the problem? Any suggestions?
EDIT:
Apparently adding an animation to the “inside-Button” and triggering it when opening the popup does the trick. The weird thing is that the animation-state of the button at popup-closing will be remembered and displayed at next popup-opening… so, for example, if the button is supposed to fade in at popup-opening, it should animate to invisible at closing to avoid unpleasant “flickering” for a frame or so at opening again.
I wonder why it doesn’t start at its supposed “original point zero” anytime I re-open the popup… is there any way to tell the button to “reset” at closing?