Hey guys!
I will add what I am trying to do to give some greater context.
My game will be focused around using a journal, for UI and other game elements. I have prepared flipbooks and textures which covers a range of things whether its the page turning, book opening and book closing.
I would like to to be able to set the brush of my image in the UI to play that animation, one way is materials but I was wondering if there was a way to play the flipbook as I can control things such as frame timing?
If material is indeed the only way is there a way to ensure its the same size and transparent?
The plugins I have are PaperZD and Paper2D
Any and all help would be really appreciated.
Hi welcome to community,
So simply you can promote the AnimationPhase to a variable and control that from blueprint side or C++
0 starting pos, 1 completed loop

If you have lets say 10 frames setting AnimationPhase 0.1 will show 2nd frame simply, if you want to stop in some certain frame etc.
Also since you said I have many Flipbooks and materials, if they are generally global animations you can create a MaterialParameterCollection MPC, define some variables inside like
OpeningAlpha
ClosingAlpha
TurnAlpha
and you can set these parameters inside the materials, so you have a single point of communication for all materials that does animations.
On your UI functions like
OpenBook()->Timeline (LerpFloat)->SetMaterialParameterCollection(OpeningAlpha)
in material
1 Like
Thank you for sending this and for the welcome! Once I have had a chance to give this a go I will let you know.
1 Like