playMaker

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

Rabassa

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Variable DropDown in Inspector
« on: December 12, 2017, 08: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: 3921
    • View Profile
    • jinxtergames
Re: Variable DropDown in Inspector
« Reply #1 on: December 12, 2017, 02: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: 171
    • View Profile
Re: Variable DropDown in Inspector
« Reply #2 on: April 27, 2018, 03:36:47 PM »
It it possible to have the dropdown list with local variables in the inspector?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3921
    • View Profile
    • jinxtergames
Re: Variable DropDown in Inspector
« Reply #3 on: April 29, 2018, 05: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: 171
    • View Profile
Re: Variable DropDown in Inspector
« Reply #4 on: May 03, 2018, 01:12:34 PM »
Thanks! Would be cool to have the dropdown option in the future. Thanks!