abstract class in a array

Hello, today I got hit by a wall…

I have this code:

shop_item<public> := class<abstract>():

    @editable
    ItemName : string = ""

    @editable
    ItemDescription : string = ""

    @editable
    ItemPrice : int = 0

and in a shop_manager i’m creating an array with shop items like this:

@editable
    ShopItems : []shop_item = array{shop_item_hat{}}

(Added the shop_item_hat{}) so we can see that there is a real item but… this is what i see when i want to configure this on the uefn interface:

As you can see the first one the hat item its perfect, but when i add manually a new item, it just display None, event when i try to configure that None row i don’t get anything:

Seems similar to this Bug Report here, except that one is for interfaces instead of abstract classess.

The workaround is to instead of adding a new element in the array by pressing the + button, to select on an already placed element and duplicate it.

1 Like

Yeah seems similar, tested it aswell with interfaces and same bug, thanks you for the reply

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.