Announcement

Collapse
No announcement yet.

Passing a value from a dynamically created widget BP to another widget BP

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

    Passing a value from a dynamically created widget BP to another widget BP

    Hello - this is my first post here, so please forgive me if I get the formatting wrong. I've tried searching in as many places as I can find on this topic, but I don't seem to be getting anywhere - I feel like I'm missing something obvious, which is extremely frustrating.

    Here's a quick breakdown of what I'm trying to do:



    I've followed Rama's tutorial here for doing the basics of what I'm trying to accomplish. However, I can't seem to figure out how to set a variable in my "CharacterSheet" BP from my dynamically created widget BP.

    Here are a few images that show my Character Sheet BP:
    The primary function that begins the widget creation
    Click image for larger version

Name:	bp_character_sheet.JPG
Views:	1
Size:	327.2 KB
ID:	1175208

    Here's the second function the screenshot above references:
    Click image for larger version

Name:	f_create_skills_and_assign_IDs.JPG
Views:	1
Size:	348.5 KB
ID:	1175209

    And finally the screenshot of my button clicked action in the SelectableSkills widget BP that was instanced dynamically.
    Click image for larger version

Name:	bp_selectable_skills.JPG
Views:	1
Size:	246.5 KB
ID:	1175210

    I would really appreciate if someone could shed some light on this!

    Thank you in advance!

    #2
    https://forums.unrealengine.com/show...reated-widgets

    Read my post, the same applies here. Just go one deeper with dispatchers.
    Marketplace code plugin: AesTargeting - Make your Actors targetable =)

    Comment


      #3
      Thank you for the assistance, Aesais. I have no idea what I just did, but now I'm able to get the value on the level BP. I have a feeling I need to spend a LOT more time with dispatchers to truly understand what the heck you did.

      Is there a reason I have to go all the way back up to the level BP? It looks like if I just stop at the point where you add the event "Button was clicked", which is my GUI BP, I can get the value from that event. Is that what you meant by "go one deeper"?

      Comment


        #4
        Answered my own question experimenting. I stopped creating dispatchers at the main GUI BP (CharacterSheet), and created an event there that delegated to the binding for "Clicked". In addition, I added the "Int" property to the Call, which gave me the int output on the event. Wahoo! Thanks again, Aesais!

        Comment


          #5
          Yea, that example I posted was to get to the level BP, but the same concept works from going from UI to UI (Considering a parent-child relationship). Glad I could help =)
          Marketplace code plugin: AesTargeting - Make your Actors targetable =)

          Comment

          Working...
          X