Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ElBueno on April 03, 2013, 02:28:23 PM

Title: Animate Float wrap modes being ignored
Post by: ElBueno on April 03, 2013, 02:28:23 PM
I'm having an issue with Animate Float. When I use it outside of a template, the wrap mode I set on my animation curve is read correctly. However, when I use Animate Float inside of a template using RunFSM, the wrap mode is always ClampForever, no matter what I set in my curve.

It's worth noting that this also occurs when I use Animate Float V2, whether it's in a template or not.

I set a breakpoint at line 47 of AnimateFloat.cs, where the "looping" bool is set based on the value of AnimationCurve.postWrapMode. postWrapMode is always equal to ClampForever. Is this a problem with Unity or with Playmaker?

I'm using Playmaker 1.5.4 inside of Unity 3.5.7.
Title: Re: Animate Float wrap modes being ignored
Post by: ElBueno on April 03, 2013, 02:47:29 PM
Just a little update: I've hacked a solution by manually setting AnimationCurve.wrapMode to Loop before it's being read in AnimateFloat.cs. I now get the behavior I want, but it's obviously not a long term solution. :)
Title: Re: Animate Float wrap modes being ignored
Post by: ElBueno on November 14, 2013, 02:23:18 PM
Pardon the necro. I just picked up the project I was having this issue in again for the first time in a few months. The issue still exists in PlayMaker 1.7.5 with Unity 4.3.

I'm having an issue with Animate Float. When I use it outside of a template, the wrap mode I set on my animation curve is read correctly. However, when I use Animate Float inside of a template using RunFSM, the wrap mode is always ClampForever, no matter what I set in my curve.

More details in my original post.

Has anyone else experienced this at all?
Title: Re: Animate Float wrap modes being ignored
Post by: jeanfabre on November 15, 2013, 07:08:58 AM
Hi,

 Thanks for getting back to this, we missed your post somehow.

 Have you filed a bug on this already? if not, can you do so, we will then better keep track of this and study if this is something we can fix on PlayMaker End.

bye,

 Jean
Title: Re: Animate Float wrap modes being ignored
Post by: ElBueno on November 15, 2013, 12:37:12 PM
I have not. I'll take care of that now. Thanks!