playMaker

Author Topic: Adding Reorderable List into Variable Type Definition  (Read 961 times)

kproudfootea

  • Playmaker Newbie
  • *
  • Posts: 1
Adding Reorderable List into Variable Type Definition
« on: May 03, 2023, 02:41:41 PM »
Hi! I have been using a standard public Array to hold a group of items that I can see/edit in the inspector of the FSM owner object.  Currently (4/2023) Unity's List<T> implementation includes reorderable support by default. 

I have been trying to use PlayMaker's "New Custom Variable Type Definition" wizard, but have been unsuccessful.  Have tried these iterations of the existing List data type:

System.Collections.Generic.List
System.Collections.Generic.List<T>
System.Collections.Generic.List<GameObject>

Is this data type not possible? Thanks for any help.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Adding Reorderable List into Variable Type Definition
« Reply #1 on: May 05, 2023, 08:01:53 PM »
Hi.
I think that 'List' not a variable type is a variable type is for example GameObject

and you can make your own variable types in script (for example 'Enemy')
and that one you can probably define with the wizard.

On the Ecosystem there is a package called Array Maker which is more powerful than the Array and it actually uses List internally.
and i believe that it has some reorder actions as well.