[Request] Flipbook material function - looping control

It would be handy if the flipbook function could get controls/inputs for: Looping endlessly, a specified number of times or not at all.

Thanks!

Hi Christian,

Thank you for your feedback. I have discussed this with a material specialist and he informed me that you will have to accomplish controlled looping via Blueprints. This is the preferred method as it will give developers complete control of how and why the looping occurs. If you want your game to loop a certain amount of times, it can not be accomplished in a shader.

How you can do that is by copying the flipbook, removing what is driving the animation and then adding an Input Function (in my example it is “Input Frame Number” set to scalar). You can then call up this function in whatever material you want and then drive it with a Param that can be referenced in a Blueprint. This will give you complete control of looping your FlipBook.

I hope this has helped you accomplish your goals. If there is anything else that I can assist you with, please let me know.

Thank you,

Alexander