Playmaker Forum

PlayMaker Feedback => Feature Requests => Topic started by: breakeren on November 07, 2014, 08:31:39 AM

Title: Expose "selected action(s)" as property on FSMEditor or StateEditor
Post by: breakeren on November 07, 2014, 08:31:39 AM
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
Title: Re: Expose "selected action(s)" as property on FSMEditor or StateEditor
Post by: Alex Chouls 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).