Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: invention7 on September 10, 2011, 08:47:44 AM

Title: SetGUIAlpha broken in 1.2, OnGUI only being called once [FIXED]
Post by: invention7 on September 10, 2011, 08:47:44 AM
Upgraded my 1.1 project to 1.2.

I have a Float Interpolate action creating a fade value which SetGuiAlpha would then apply globally.  Worked fine in 1.1.   In 1.2, I'm noticing the SetGUIAlpha's OnGUI is only be called once during the interpolation, so the change in float isn't being used by the action except on the first value.

Title: Re: SetGUIAlpha broken in 1.2, OnGUI only being called once
Post by: Alex Chouls on September 12, 2011, 07:27:23 PM
Thanks! This will be fixed in 1.2.1

To fix locally, open SetGUIAlpha.cs and remove Finish() from: if (applyGlobally.Value)

Same for SetGUIBackgroundColor, SetGUIColor, and SetGUIContentColor.

Over aggressive optimization - didn't account for animated values. I might add an "EveryFrame" option to these actions...