playMaker

Author Topic: PlayAnimation: Missing animation - 2d sprite animation  (Read 4036 times)

theninjin

  • Guest
PlayAnimation: Missing animation - 2d sprite animation
« on: January 25, 2016, 04:48:58 PM »
Hi
I cant see to get the animation to play on states. I make an animation via Unity2d and sprite selection etc.
  • I add the Play Animation action.
  • On Anim Name I click the little arrows
  • In the list shown I click on the animation I want to run.
  • The animation name is inserted into the Anim Name: textfield
Then I Click Play icon and when the state is entered I get following error message.

Code: [Select]
Player : Burst : KeyPress : PlayAnimation : Missing animation: PlayerIdle
UnityEngine.Debug:LogWarning(Object)
HutongGames.PlayMaker.FsmLog:AddEntry(FsmLogEntry)
HutongGames.PlayMaker.FsmLog:LogAction(FsmLogType, String)
HutongGames.PlayMaker.FsmStateAction:LogWarning(String)
HutongGames.PlayMaker.Actions.PlayAnimation:DoPlayAnimation() (at Assets/PlayMaker/Actions/PlayAnimation.cs:76)
HutongGames.PlayMaker.Actions.PlayAnimation:OnEnter() (at Assets/PlayMaker/Actions/PlayAnimation.cs:53)
HutongGames.PlayMaker.FsmState:ActivateActions(Int32)
HutongGames.PlayMaker.FsmState:OnEnter()
HutongGames.PlayMaker.Fsm:EnterState(FsmState)
HutongGames.PlayMaker.Fsm:SwitchState(FsmState)
HutongGames.PlayMaker.Fsm:UpdateStateChanges()
HutongGames.PlayMaker.Fsm:UpdateState(FsmState)
HutongGames.PlayMaker.Fsm:Update()
PlayMakerFSM:Update()

KellyRay

  • Full Member
  • ***
  • Posts: 170
Re: PlayAnimation: Missing animation - 2d sprite animation
« Reply #1 on: January 25, 2016, 10:07:14 PM »
What you are looking for are these actions:

https://hutonggames.fogbugz.com/default.asp?W1031

Animations made in unity use Unity's Mechanim system. Play Animation is apart of the legacy animations.

theninjin

  • Guest
Re: PlayAnimation: Missing animation - 2d sprite animation
« Reply #2 on: January 26, 2016, 07:30:35 PM »
Ah yes that works. Even downloaded that earlier but thought they were the ones for Legacy stuff for some reason. Thanks.