playMaker

Author Topic: Action Set animator Loop in game ?  (Read 1307 times)

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
Action Set animator Loop in game ?
« 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7621
    • jinxtergames
Re: Action Set animator Loop in game ?
« Reply #1 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

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
Re: Action Set animator Loop in game ?
« Reply #2 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
« Last Edit: May 25, 2021, 11:44:04 AM by eotiti »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7621
    • jinxtergames
Re: Action Set animator Loop in game ?
« Reply #3 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.



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

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
Re: Action Set animator Loop in game ?
« Reply #4 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.



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

wetcircuit

  • Full Member
  • ***
  • Posts: 158
    • wetcircuit.com
Re: Action Set animator Loop in game ?
« Reply #5 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)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7621
    • jinxtergames
Re: Action Set animator Loop in game ?
« Reply #6 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.

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
Re: Action Set animator Loop in game ?
« Reply #7 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