Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: eotiti on May 25, 2021, 06:55:54 AM

Title: Action Set animator Loop in game ?
Post by: eotiti on May 25, 2021, 06:55:54 AM
Hi !

I use Animator ( Humanoid) for my character ...
When I want to set the loop for animation, I need to setup inside FBX and it cannot do this when the game is running

I have found an Action name: Animation Settings, but this action is only used for ( animation) not for (animator)

So have a action to do this with (animator ) when the game is running?
Title: Re: Action Set animator Loop in game ?
Post by: djaydino on May 25, 2021, 11:24:54 AM
Hi.
if you created an animation and then select the animation you should be able to set loop in the inspector
Title: Re: Action Set animator Loop in game ?
Post by: eotiti on May 25, 2021, 11:41:55 AM
Hi.
if you created an animation and then select the animation you should be able to set loop in the inspector

I still don't understand your ideas  ... I use 3dsmax to create animation, not do it inside Unity .

And i need make loop animator realtime in game .
i try use parameter inside unity animator ... but no have loop option
Title: Re: Action Set animator Loop in game ?
Post by: djaydino on May 25, 2021, 11:50:53 AM
Hi.
Sorry I never used 3dsmax

with unity animation when you select you can turn off loop time.

(https://i.imgur.com/1lcO1jU.png)

maybe if you select your animations you have an option as well?

on a quick google search i found only this :

https://answers.unity.com/questions/410493/how-to-get-an-animation-inside-a-fbx-file-to-loop.html
Title: Re: Action Set animator Loop in game ?
Post by: eotiti on May 26, 2021, 01:50:38 AM
Hi.
Sorry I never used 3dsmax

with unity animation when you select you can turn off loop time.

(https://i.imgur.com/1lcO1jU.png)

maybe if you select your animations you have an option as well?

on a quick google search i found only this :

https://answers.unity.com/questions/410493/how-to-get-an-animation-inside-a-fbx-file-to-loop.html

Yes .  I can set loop time inside Inspector but I need to set it during the running game ... Is there any action to do this ?
I use Unity's Animator
Title: Re: Action Set animator Loop in game ?
Post by: wetcircuit on May 26, 2021, 06:43:41 AM
In general animations that are designed to loop, just loop. when and how you transition out of them is done with Animator actions and your mecanim states.

I'm trying to imagine a looped animation where sometimes you'd just want it to stop dead at the end of a cycle.

Typically you'd use mecanim to transition to a different animation, or use the Animator Cross Fade action to transition to a different anim regardless of the mecanim flow.

(You can also use Animator actions to control the playspeed of the anim, and stop dead at any arbitrary point in the cycle)
Title: Re: Action Set animator Loop in game ?
Post by: djaydino on May 26, 2021, 07:23:21 AM
Hi.
I don't think you can change the setting during runtime.
i did a quick google but could not find anything.
if you find something in unity code i can make an action for it.
Title: Re: Action Set animator Loop in game ?
Post by: eotiti on May 30, 2021, 06:18:43 AM
Thank everyone ... Maybe I will use the calling again into Animator Trigger to create a loop animation :D