playMaker

Author Topic: Animations Won't Play [SOLVED]  (Read 16875 times)

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Animations Won't Play [SOLVED]
« on: September 19, 2013, 03:21:55 AM »
Hello!

I've set up my state machine for my character as such:


However, the animations associated to the states do not play. The Play Animation action greys out when the button is pushed. Any suggestions would be appreciated.

Thanks
« Last Edit: October 06, 2013, 04:03:34 AM by intrikit »

parallel

  • Full Member
  • ***
  • Posts: 155
Re: Animations Won't Play
« Reply #1 on: September 19, 2013, 05:54:17 AM »
How are your characters animation import settings? I don't see any anim name specified. Legacy?

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Re: Animations Won't Play
« Reply #2 on: September 19, 2013, 02:29:51 PM »
My character's rig was set to Humanoid. As were the animations. Then I got some errors saying that the animations needed to be set to Legacy. So I set both my character and the animations both to Legacy and with Store in Root. The errors went away and the Play Animation action in Playmaker was no longer greyed out but the animations still won't play..

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Animations Won't Play
« Reply #3 on: September 19, 2013, 04:35:54 PM »
In the screenshot Anim Name is set to None. Are you setting the names of the animations to play?

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Re: Animations Won't Play
« Reply #4 on: September 19, 2013, 04:43:41 PM »
Yes. I've made sure I set it to one of the animations in the animation list. It just so happened that it was set to "none" when I took the screenshot.

The states are applied to a game object though, not the actual character object. And the character is a child of the game object. Might that cause a problem?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Animations Won't Play
« Reply #5 on: September 19, 2013, 04:46:43 PM »
That shouldn't be a problem as long as you're targeting the right game object in the Play Animation action.

Do the animation names appear in the browse popup next to the Anim Name field?

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Re: Animations Won't Play
« Reply #6 on: September 19, 2013, 04:51:41 PM »
Yes they do. Each time I add an animation to the Animation component of the character, the Anim Name field updates properly. My character should be good to go. It's rigged properly and I've applied animations to it via the Animator in Unity and it works.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Animations Won't Play
« Reply #7 on: September 19, 2013, 05:05:49 PM »
To try and debug this:

Add a new state with just the Play Animation action targeting the child object and make it the Start state. When you hit play does it play the animation?

If it does, then most likely something in the flow of your FSM is broken. E.g, the animation is playing but then another state is immediately stopping it, or playing a different animation...

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Re: Animations Won't Play
« Reply #8 on: September 20, 2013, 12:09:24 AM »
Tried that... still won`t work! I must be missing some setting inside Unity.. I appreciate your replies!

Also, I am playing animations that I`ve either purchased or the ones that come free from Unity`s sample packages. I wonder if that is an issue.
« Last Edit: September 20, 2013, 12:48:14 AM by intrikit »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animations Won't Play
« Reply #9 on: September 20, 2013, 03:00:29 AM »
Hi,

 have you tried with other animations? ones that comes free?

bye,

 Jean

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Re: Animations Won't Play
« Reply #10 on: September 20, 2013, 03:21:03 AM »
Yes i`ve tried with about two or three other animations but none work. I actually also tried to apply the same FSM to the original model the animations are associated with and they also do not work...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animations Won't Play
« Reply #11 on: September 20, 2013, 03:28:49 AM »
uhm..

 can you start a fresh projects? if that still doesn't work, it's likely a setting you miss in general.


bye,

 Jean

intrikit

  • Full Member
  • ***
  • Posts: 132
    • Defiant Child
Re: Animations Won't Play
« Reply #12 on: September 21, 2013, 04:57:25 PM »
I started a new project and still.. no luck.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Animations Won't Play
« Reply #13 on: September 21, 2013, 09:38:23 PM »
Does the animation play if you set it as the Animation in the Animation Component and check Play Automatically?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animations Won't Play
« Reply #14 on: September 23, 2013, 01:42:53 AM »
Hi,

 Can you share that fresh project? pm me, and I'll have a look.

bye,

 Jean