x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to trigger event from User Widget to User Widget

Hello, I have a User Widget Nested into another User Widget. When you press a button on the nested one it needs to send a signal to the main telling it to upgrade. I was told to do Binding/Calls but that doesn't even make sense when theI am not dealing with anything like that, this is strictly User Widgets. I have tried using a interface but even that didn't work. :C pls halp... If you know of how to solve this please don't link me a youtube video unless it directly relates to my problem. Literally all I want to do is send a signal from a widget to another widget.


alt textalt textalt text

Product Version: UE 4.9
Tags:
more ▼

asked Oct 24 '15 at 07:06 PM in Blueprint Scripting

avatar image

CogHeadGamer
9 4 7 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

First ask yourself if your main widget really need to be one calling for upgrade, the nested one can do that too without a issues and you could reuse that code in other parent widgets too

But anyway you can access parent widget via this node:

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Widget/GetParent/index.html

Then you cast it to your widget type and call function

more ▼

answered Oct 24 '15 at 07:50 PM

avatar image

Shadowriver
37.2k 936 172 1116

avatar image CogHeadGamer Oct 24 '15 at 10:58 PM

I really dont understand how to use it, Can you make a small thing of it and just screen cap it? Also my Main Widget isnt the one calling it its the one with the upgrade 1/buy recieve that calls it. My main on is the one with the 2 events and the print screen that says "Worked"

avatar image Shadowriver Oct 25 '15 at 02:06 AM

In nested widget place it and object output is a parent widget which nested widget is in then you grab that output put it on empty space and search for cast node to class of your widget once, you cast it you can call functions to it

avatar image CogHeadGamer Oct 25 '15 at 02:24 AM

Either I didnt do this right or It didnt work, I set it up as I think you said, The actual parent of the WB_Upgrades (nested one) is just [USER WIDGET] and if I change it to WB_Clicker (main one that I need to cast to) it wont let me save the file alt textalt text

avatar image CogHeadGamer Oct 25 '15 at 08:22 PM

Hey man I still really need your help

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question