Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: theninjin on January 25, 2016, 04:48:58 PM

Title: PlayAnimation: Missing animation - 2d sprite animation
Post by: theninjin 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.
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()
Title: Re: PlayAnimation: Missing animation - 2d sprite animation
Post by: KellyRay 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.
Title: Re: PlayAnimation: Missing animation - 2d sprite animation
Post by: theninjin 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.