playMaker

Author Topic: SetGUIAlpha broken in 1.2, OnGUI only being called once [FIXED]  (Read 2810 times)

invention7

  • 1.2 Beta
  • Playmaker Newbie
  • *
  • Posts: 9
SetGUIAlpha broken in 1.2, OnGUI only being called once [FIXED]
« 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.

« Last Edit: November 05, 2011, 05:19:49 PM by alexchouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: SetGUIAlpha broken in 1.2, OnGUI only being called once
« Reply #1 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...