playMaker

Author Topic: Can Icreate FSMArray of objects in custom action supporting custom vars?  (Read 541 times)

Orioriori

  • Playmaker Newbie
  • *
  • Posts: 1
Hello,
for example if I do this:
      [ArrayEditor(VariableType.String)]
        public FsmArray Texts;

Then in the inspector, I can assign a named variable to this.

But if I do the same with

      [ArrayEditor(VariableType.Object)]
        public FsmArray Texts;

I can't.

I basically want to have a variable that can use named variable array of object type with sprite objects.

I'm able to do this:
        [ObjectType(typeof(Sprite))]
        public FsmObject[] Sprites;

but this is not ideal as this way each individual sprite array element can be a named variable but not the whole array.

Thanks.