How to stop Repeat Animation #41
Answered
by
ThomasGorisse
suryanadiminti99
asked this question in
Q&A
-
Hi @ThomasGorisse I am using below code for playing animation . Animation will play repeatedly . I want to play it one time. How can i define it . `FilamentAsset filamentAsset = arrayListModelNodes.get(j).getRenderableInstance().getFilamentAsset();
`// For animations
|
Beta Was this translation helpful? Give feedback.
Answered by
ThomasGorisse
Apr 20, 2021
Replies: 1 comment
-
Just use this to start the animation with ObjectAnimator modelAnimator = model.getRenderableInstance().animate(false);
modelAnimator.start(); you can use this to stop it: modelAnimator.cancel(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ThomasGorisse
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just use this to start the animation with
repeat=false
:you can use this to stop it: