I have a box in my widget ‘Target_01’, which I am animating from right to left upon a button press. ‘Target_01_R2L’
As the button is pressed a second time the box disappears.
I would like to track the X/Y positions of the Target_01_R2L animation variable, and then store that value, when the button is pressed the second time.
What method could I use to do this? I having difficulty even exposing this animation variable. Any suggestions would be appreciated.
If that’s all you need, read values of any widget any time:
If you combine it with animation progress (current time), you can capture and associate that data in variables. Something along the lines of could work OK:
Not sure what this is really for, I might be off my mark with the suggestion.
Using that captured data is more tricky because widget animation data is immutable - fire & forget; piping in new data is not really a thing (unless UE5 revamped it, that is).
You can, however, use events for more nuanced behaviours:
When you double click the green repeater track, you’ll get a new graph and an event that triggers every frame of the animation (you can use triggers, too, for one-off actions).
In this instance we treat the animation as a 0-1 alpha progress to Lerp between any values - now you can blueprint the rest of calculations. This is much closer to an actor’s Timeline.