playMaker

Author Topic: Editing FsmVar Element Names In CutomActionEditor  (Read 48 times)

coxy17

  • Sr. Member
  • ****
  • Posts: 337
    • View Profile
Editing FsmVar Element Names In CutomActionEditor
« on: May 18, 2018, 06:35:31 AM »
Hi

I need to change the labels for FsmVar[] element names. Currently they are labeled as "Element 1", "Element 2" etc...

But I would want to change them to be unique, not incremental numbers at the end.

e.g. "Name", "Name zyz" etc...

Is this possible?

But more importantly im using [UIHint(UIHint.Variable)]. I have thought about adding in EditorGUILayout field, but i need boxes which im able to select local FSM variables from, from the action. But not been able to achieve this.

Nick

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2952
    • View Profile
    • jinxtergames
Re: Editing FsmVar Element Names In CutomActionEditor
« Reply #1 on: May 18, 2018, 06:58:56 AM »
Hi.
I do not think that that is possible as it uses arrays or lists
and the elements are the index numbers.

So you might want to look into using hash tables.

Arraymaker (package on the Ecosystem) has hashtables.