Change Sprite Animation Clip during runtime

Hi,

not sure if the is the correct subforum, I hope it is.
I’m using Unity 2017.3 and have a RuntimeAnimatorController which has 3 Clips.

One of these clips can be played looping or not. This depends on several parameters which I know just in game. I dont want to create two animations one with loop true and the other with false.

Is it possible to change the loop state for a clip in my RuntimeAnimatorController during runtime in c#?

Thanks for helping and best regards
L_tD

Hi, have a look at this link, it’s just the unity docs on animation clips. Unity - Scripting API: AnimationClip

Basically it just says you can change the wrap mode of an animation clip to loop or not