Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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.
- 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.
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()
-
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.
-
Ah yes that works. Even downloaded that earlier but thought they were the ones for Legacy stuff for some reason. Thanks.