playMaker

Author Topic: Expose "selected action(s)" as property on FSMEditor or StateEditor  (Read 2685 times)

breakeren

  • Playmaker Newbie
  • *
  • Posts: 1
I am making an editor tool, where i sometimes want to extract data from specific FsmStateActions into a scriptable object outside of playmaker.

I open my Fsm, select any state in there, and via the StateEditor on the right select a single FsmAction on the state. Now a single action is selected. I need to be able to query from my own editor script, what action(s) is/are currently selected.

Can you implement this simple Get-Property ? Or is it against some principle?

Regards
breakeren

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3999
  • Official Playmaker Support
    • LinkedIn
Re: Expose "selected action(s)" as property on FSMEditor or StateEditor
« Reply #1 on: November 07, 2014, 12:46:48 PM »
Right now that info is internal. I'll expose it in the next update.
Until then, if you want to use reflection to access the internal property:
List<FsmStateAction> StateInspector.SelectedActions

Or PM me if you want access to the beta (I'll add the property to the next build).