Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Orioriori on October 17, 2020, 12:48:53 PM

Title: Can Icreate FSMArray of objects in custom action supporting custom vars?
Post by: Orioriori on October 17, 2020, 12:48:53 PM
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.