so i am trying to do a card game and i have massive issues mith my UI.
when i draw the my array update juste fine, but if i do my right mouse bouton action it says that the Array is empty.
the lets mousse bouton action has 0 issue, even if i do it after my right mouse bouton.
in screesnchot 2 you can see the verry begening of my right mouse button action, there is literaly nothing before that.
Where is it contained? (What is the object blueprint shown in the screenshots?)
As you probably know the array holds only the address to your “card” objects. Where do the actual card objects reside? Can you show the moment of creation of those cards and in what object is that done?
You are most probably either deleting or letting the garbage collector delete your card objects.
the array is an object reference to my card template widget
every screen is from the same blueprint widget (W_Cards_Location)
My cards are all drawn of from a different Array (W_Actor Draw Pile) handled in an actor component
the widget just receive this array and transfer the item in the 0 index from W_Actor_Draw_Pile to the array Cards in Hand
I don’t think its a garbage collect issue because the widgets are all on screen and every left mouse click interaction works perfectly even after i attempt a bugged right mouse click interaction.
Update, after messing around trying to gather more infos i noticed the bug no longer happens if i don’t remove W_cards_location from parent (the parent is my general UI widget with just a canvas panel)