This one has me a little bit baffled.
I'm using a mecanim sync layer to handle animations when the players are damaged, so everything stays all nice and tidy, and the animations are just switched out when required. The state machine works fine when the players are healthy. The correct synced animations also work when called directly from an event (like a battle start or battle end one).
However, when the synced animations are being called by the game when attacking, using items, casting spells, anything like that, using the "Use Play" tick box in the Animations settings, they don't work. Nor have I been able to get the sync layers to work using parameters. Layer Index is set, as is Set Layer Weight. I get this error:
Calling Animator.GotoState on Synchronize layer
UnityEngine.Animator:Play(String, Int32)
ORKFramework.Animations.MecanimAnimation:Play(Animator)
ORKFramework.Animations.AnimationSetting:MecanimPlay(AnimInfo&, Animator, Int32)
ORKFramework.CombatantAnimations:Play(Int32)
ORKFramework.Events.Steps.CombatantAnimationStep:Continue(BaseEvent)
ORKFramework.Events.Steps.CombatantAnimationStep:Execute(BaseEvent)
ORKFramework.Events.BattleEvent:ExecuteNextStep()
ORKFramework.Events.BaseEvent:StartEvent()
ORKFramework.Events.BattleEvent:StartEvent(IEventStarter, GameObject)
ORKFramework.BaseAction:PerformAction()
ORKFramework.BaseBattle:PerformAction(BaseAction)
ORKFramework.ActiveTimeBattle:PerformNextAction3()
ORKFramework.d__0:MoveNext()
Any ideas what I screwed up?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!