Flipbook Material Clamp Anim

I’m using a simple FlipBook material driven by my ammo count to display “special” numbers, and it works great, except when the magazine is full, it defaults to a “0” value, so it starts at “00”, then jumps to 14, 13, 12, etc…back down to 00.

Reading the Clamp Anim tooltip, with a full magazine (value of 1), “A frac operation is applied to the animation phase. This causes a value of exactly 1 in the animation phase input to return 0.” So, the flipbook is working as intended. It continues “Enabling this feature will clamp the animation phase value from 0 to .9999 which avoids the issue”.

I think enabling this feature will fix my problem, but I’m not sure I’m enabling this feature correctly (if I am, it’s not solving the problem). Diving into the FlipBook node I see that a StaticBool is plugged into Clamp Anim; setting this to True doesn’t fix the problem (nor does plugging in a Static Bool set to True plugged into the Clamp Anim FlipBook).

Is there another method to enable this feature (or am I trying to solve this problem incorrectly)?

flipbook_digits.png

Was looking at a simliar play animation only once issue.

If you use a static bool as input, it will clamp it so the animation plays exactly once.

Here is the reference:
https://forums.unrealengine.com/development-discussion/rendering/1366275-help-how-to-stop-looping-flipbook-materials