playMaker

Author Topic: Global variables Inspector checkbox  (Read 2538 times)

Mark_T

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 72
    • View Profile
Global variables Inspector checkbox
« on: January 15, 2012, 01:04:00 PM »

I would love to have the option to make global variables visible in the main Inspector window.
Especially during play time. Maybe attached to the PlayMakerGUI object automaticaly created with the first created FSM in the scene?
Checking the Inspector checkbox in the Global variables window, the same way we do with the regular variables in the Variable Manager, will be very convenient, I think.
Maybe that PlayMakerGUI object can be used for some other similar purposes to.
I`m making this request because I have a bunch of global variable and I don`t know how to follow them during gameplay. If there is a way to do that. I`ll be grateful for some guidance.
Thanks in advance for your answers.


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3217
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Global variables Inspector checkbox
« Reply #1 on: January 15, 2012, 03:20:02 PM »
There are a few ways to follow global variable values at runtime:

1. Select PlayMaker/Resources/PlayMakerGlobals.asset and the inspector will show all your globals.
2. Keep the Globals tool window open and check Debug Values in the settings menu (the small cog icon).
3. The Variables tab shows global variables used by the selected FSM. Check Debug in the settings menu to see their values.

It should be fairly easy to expose 3 in the unity inspector for the FSM... I'll look into that...

Mark_T

  • 1.2 Beta
  • Junior Playmaker
  • *
  • Posts: 72
    • View Profile
Re: Global variables Inspector checkbox
« Reply #2 on: January 15, 2012, 05:11:58 PM »
Thanks a bunch.
Now it`s a lot easier. :)
The first method is the most convenient.
One last question: Is it possible to reorder the variables in the Global variables window?
I mean the position. Just to make things easier to follow.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3217
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Global variables Inspector checkbox
« Reply #3 on: January 15, 2012, 06:20:32 PM »
Quote
One last question: Is it possible to reorder the variables in the Global variables window?

Not currently, but that's a good idea. I'll add it as a feature request...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12405
  • Official Playmaker Support
    • View Profile
Re: Global variables Inspector checkbox
« Reply #4 on: February 09, 2012, 12:30:27 AM »
Hi,

 Yes, reordering would be great! for events as well.

Bye,

 Jean

krmko

  • Sr. Member
  • ****
  • Posts: 442
    • View Profile
    • Fat Pug Studio
Re: Global variables Inspector checkbox
« Reply #5 on: December 01, 2017, 04:58:15 AM »
Sorry for bumping, but is this not possible yet? I need to reorder some local variables if possible :) They are categorized, but i need some more fine tuning :D