playMaker

Author Topic: [SOLVED]GUILayoutToolbar text labels don't update.  (Read 2844 times)

pXd

  • Playmaker Newbie
  • *
  • Posts: 29
[SOLVED]GUILayoutToolbar text labels don't update.
« on: February 26, 2016, 03:00:14 PM »
Hi there,

I have a GUILayoutToolbar action which text array elements are populated with global string variables. Although the string variables definitely change and update (as observed in the inspector), the GUILayoutToolbar text labels do not.

I have tried doing a test looping state with the next frame action also, but they still do not update.

Ive tried updating the GUILayoutToolbar.cs to the latest beta but still no luck.

As far as I can tell this must be a bug.


« Last Edit: March 02, 2016, 02:05:57 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: GUILayoutToolbar text labels don't update.
« Reply #1 on: March 01, 2016, 09:42:36 AM »
Please try the attached version. It adds an "Every Frame" option to update the button contents if they change.
« Last Edit: March 15, 2016, 11:19:45 PM by Alex Chouls »

pXd

  • Playmaker Newbie
  • *
  • Posts: 29
Re: GUILayoutToolbar text labels don't update.
« Reply #2 on: March 02, 2016, 01:53:00 AM »
Please try the attached version. It adds an "Every Frame" option to update the button contents if they change.

Thanks a lot Alex,

This will help heaps.

I will try.

pXd

  • Playmaker Newbie
  • *
  • Posts: 29
Re: GUILayoutToolbar text labels don't update.
« Reply #3 on: March 15, 2016, 01:53:22 AM »
Please try the attached version. It adds an "Every Frame" option to update the button contents if they change.

Hi Alex,

I have just started testing your update in my production environment and every time I enable the new "Every Frame" button my console gets spammed with this error:

NullReferenceException: Object reference not set to an instance of an object
(wrapper stelemref) object:stelemref (object,intptr,object)
HutongGames.PlayMaker.Actions.GUILayoutToolbar.SetButtonsContent () (at Assets/PlayMaker/Actions/GUILayoutToolbar.cs:55)
HutongGames.PlayMaker.Actions.GUILayoutToolbar.OnGUI () (at Assets/PlayMaker/Actions/GUILayoutToolbar.cs:94)
PlayMakerGUI.DoEditGUI ()
PlayMakerGUI.OnGUI ()

All I'm doing is assigning the GUI layout toolbar's text array values with string variables.

Any help much appreciated.

Thanks


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: [SOLVED]GUILayoutToolbar text labels don't update.
« Reply #4 on: March 15, 2016, 11:20:24 PM »
Sorry about that. I've updated the download. Please download again and give it another try...

pXd

  • Playmaker Newbie
  • *
  • Posts: 29
Re: [SOLVED]GUILayoutToolbar text labels don't update.
« Reply #5 on: March 16, 2016, 09:00:49 PM »
Sorry about that. I've updated the download. Please download again and give it another try...

Thanks Alex,

Tested and working!