How to stop Widget UI screen at first animation frame ?

I have UI like this


i have one animation for OK button
it’s going like this

and last frame has nothing on screen
but i want my screen stop at first frame when my OK button still not get press or click
how should i do that ? I made this graph but it’s looking not working

Can someone tell me which part i was wrong, please ?
Thanks for reading, sirs :pray: :pray: :pray:

first:

image

you didnt assigned anything to the bind…the red rec must have a event/function attached.

I suppose you want to remove the widget when the animation ends.

this is one right way to do it…the execution pin on the right side is just to continue with the program flow.:

image

remove from parent node (target:self) will remove the widget and is recomended in this
case because if you have more widgets in use, remove all widgets will get rid of the others too.

I dont know how is you animation in action but you should not need to set first frame and pause on construct.

If you dont PLAY it it will stay still.

Basically what you doing is on Pressing just play and remove in the same frame so your widget will just dissapear when you press ok :slight_smile:

1 Like

Thank you so much for helped bro :pray: :pray: :pray: :smiling_face_with_three_hearts: :smiling_face_with_three_hearts: :smiling_face_with_three_hearts:

1 Like

Glad to help! :fist_right: :fist_left:

Bonus track: in the animation timeline you can add EVENT keyframes too So if you want to remove the widget at the end of the animation you can add an event keyframe, double click the key to open the event trigger and add remove from parent there like this:

image

image

no more binds needed there

1 Like

thanks so much bro :pray: :pray: :pray: :smiling_face_with_three_hearts: :smiling_face_with_three_hearts: :smiling_face_with_three_hearts:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.