matmork / rive-maui

Rive animations in Maui using iOS/Android runtimes
MIT License
6 stars 1 forks source link

Cant stop animation from looping #23

Open IeuanWalker opened 2 months ago

IeuanWalker commented 2 months ago

I have set Loop="OneShot" and AutoPlay="False", and then just calling the .Play() method when I want the animation to start. But the animation just continues to loop

IeuanWalker commented 2 months ago

I can see the loop property has been set on the MAUI control but doesn't look like it makes its way down to the native control - image

matmork commented 2 months ago

Hi, can you try the nuget from latest pr build here and see if its working for you? You may need to specify the animation name if you haven't already, ex: AnimationName="run"

IeuanWalker commented 2 months ago

@matmork without the animation name it still looped.

But after adding the animation name i get an exception - image

matmork commented 2 months ago

run is the name of an animation only found in the runner.riv All animations in that in that file: ["normal", "run", "under_attack", "fire", "idle"]

Try Screenshot 2024-08-30 at 11 56 13 in your case.