Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Splankton on May 04, 2015, 09:24:26 AM

Title: IK Set Animator Look At
Post by: Splankton on May 04, 2015, 09:24:26 AM
Im using Unity5, can someone confirm Set Animator Look At works?
I have the PlayMakerAnimatorProxy component, I get this error

Setting and getting IK Goals should only be done in OnAnimatorIK or OnStateIK
UnityEngine.Animator:SetLookAtPosition(Vector3)

Title: Re: IK Set Animator Look At
Post by: mdotstrange on May 04, 2015, 12:58:11 PM
I just used it yesterday and it worked fine- I got some prompt that showed up in red on the action- I just clicked it and all was fine
Title: Re: IK Set Animator Look At
Post by: Splankton on May 16, 2015, 02:01:56 PM
I just used it yesterday and it worked fine- I got some prompt that showed up in red on the action- I just clicked it and all was fine

Hi, nope still not working for me.  I have tried the Unity 5 mecanim actions and 4.6.1 actions.  Still get that error.  It compiles ok, but the animator look.at action has no effect at all.
The action help says - An Animator component and a PlayMakerAnimatorProxy component are required
I have PlaymakerAnimatorIKproxy and PlaymakerAnimatorMoveProxy.  But no PlayMakerAnimatorProxy.

Jean, is this a known problem or am I missing something?
Thanks
Title: Re: IK Set Animator Look At
Post by: mdotstrange on May 16, 2015, 04:03:21 PM
Did you try deleting and re-installing the animator actions? Sometimes that fixes errors- Here's a short video tutorial on using Set Animator Look at https://www.youtube.com/watch?v=HLD7ZCoPAGA (https://www.youtube.com/watch?v=HLD7ZCoPAGA)
Title: Re: IK Set Animator Look At
Post by: JOHNMCLAY on May 31, 2015, 11:10:25 PM
Hey there,

I'm also encountering this error as well - Set Animator Look At has no effect and the console reads - Setting and getting IK Goals should only be done in OnAnimatorIK or OnStateIK.

I've deleted and re-installed the animator actions, but with no effect.

Judging by that error message and the actual script, it looks like the action is attempting to Set the LookAt IK on '.OnAnimatorMove()'...instead of '.OnAnimatorIK' or '.OnStateIK' --- .OnAnimatorMove was the pre-Unity 5 method.

I'm trying to reconfigure it myself but I've had no luck :/  Could any of the Playmaker guys help out? :) 

EDIT: A solution was posted here (2nd Last post) - http://hutonggames.com/playmakerforum/index.php?topic=10177.msg49090#msg49090 (http://hutonggames.com/playmakerforum/index.php?topic=10177.msg49090#msg49090)
Title: Re: IK Set Animator Look At
Post by: jeanfabre on June 03, 2015, 05:03:26 AM
Hi,

It's done (https://twitter.com/JeanAtPlayMaker/status/606020543939276800), updated and implemented this change. Let me know how it goes:

you can now download it directly from the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) as well


Bye,

 Jean