Announcement

Collapse
No announcement yet.

Custom struct property binding for uwidget

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Custom struct property binding for uwidget

    Hello.
    I'm searching for a solution for my problem. I created an item slot widget in c++ which take in input a FItemSlot custom struct that contains a FName for ItemId, an int32 for StackSize and an UItem* for the item data (name, icon, ...). I equally created in blueprint a user widget with item slot widget, but when I bind my FItemSlot with the item slot widget, it doesn't work. No update.
    Note I follow Rama's tutorial but nothing. I don't understand what I do wrong. I attach some screenshots to be clear.

    Here is my .h file

    Click image for larger version  Name:	Sans-titre2.png Views:	0 Size:	57.6 KB ID:	1737485

    My .cpp file
    Click image for larger version  Name:	Sans-titre1.png Views:	0 Size:	95.8 KB ID:	1737488

    My UMG screen with my ItemSlotButton

    Click image for larger version  Name:	Sans-titre3.png Views:	0 Size:	81.1 KB ID:	1737489

    If anybody has the solution, I'll be grateful. Thanks.

Working...
X