Announcement

Collapse
No announcement yet.

How do I add items to my C++ based set, from my HUD Widget?

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

    How do I add items to my C++ based set, from my HUD Widget?

    I am trying to add items to my c++ based Set "PlayersKenoCard" from my HUD class; by using the OnClick event for each of the 80 buttons I have.

    However, I cannot see the items of the Set, and it seems that it is not actually adding the items to the set.

    How can I see if the items are being added; or add them to begin with?

    #2
    I'm not sure what the issue is, but I wanted to point out that you can have a function in your C++ class, and call it from your widget blueprint. That way, it may be easier to handle the set. Just inherit from UUserWidget and mark the function with UFUNCTION(BlueprintCallable). Now in the blueprint, OnClick you can call the function. (You can bind it directly in the C++ class as well)

    Comment

    Working...
    X