playMaker

Author Topic: Variable DropDown in Inspector  (Read 3287 times)

Rabassa

  • Playmaker Newbie
  • *
  • Posts: 4
Variable DropDown in Inspector
« on: December 12, 2017, 10:00:49 AM »
Hello!

I have several Global Variables set up and I'd like to have a Variable exposed in my Inspector that will allow me to select from these Globals variables (within a given Category). Is this possible?

Thanks,
rich

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Variable DropDown in Inspector
« Reply #1 on: December 12, 2017, 04:53:12 PM »
Hi.
I believe only local variables can be shown in the inspector.

But you should avoid using globals and keep it to a minimum,

You can use Get/Set Fsm actions to share variables to other fsms when needed.

Alatriste

  • Full Member
  • ***
  • Posts: 193
Re: Variable DropDown in Inspector
« Reply #2 on: April 27, 2018, 06:36:47 PM »
It it possible to have the dropdown list with local variables in the inspector?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Variable DropDown in Inspector
« Reply #3 on: April 29, 2018, 08:17:45 PM »
Hi,
if you enabled the 'Inspector' bool on a variable then you can see them in the inspector,
and you can place a category for variables and they will be shown in that category on the inspector
You can show/hide then with 'Controls' (on the inspector)

But no dropdown list.

Alatriste

  • Full Member
  • ***
  • Posts: 193
Re: Variable DropDown in Inspector
« Reply #4 on: May 03, 2018, 04:12:34 PM »
Thanks! Would be cool to have the dropdown option in the future. Thanks!

Maart

  • Junior Playmaker
  • **
  • Posts: 88
Re: Variable DropDown in Inspector
« Reply #5 on: November 25, 2020, 03:28:03 PM »
Bump
It would be awesome to have a placeholder variable that can contain multiple variables of the same type in a dropdown menu