playMaker

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

theninjin

  • Playmaker Newbie
  • *
  • Posts: 2
    • View Profile
PlayAnimation: Missing animation - 2d sprite animation
« on: January 25, 2016, 02: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
    • View Profile
Re: PlayAnimation: Missing animation - 2d sprite animation
« Reply #1 on: January 25, 2016, 08: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

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