Communicate between two widgets

Avi_Aggarwal
Wed, 23 Jan 2019 05:53:52 +0000
UI

I have two widgets. I want to send a value on from Widget A to Widget B. I have tried using Event Dispatchers, creating Custom Events, and Casting too. Casting and Event Dispatchers fail with an error “Accessed none trying to read property” Then I tried creating a custom event with an input variable, but it does not give any output.

Note: I have created a function override “OnMouseButtonDown” to feed value to my custom event or the event dispatcher.

I am following this tutorial Creating a Data-Driven UI with UMG - Unreal Engine to create a widget that contains information from a data table. I want to get information displayed in my main widget when I click an item. Please open the link so that you can have an idea of what I am trying to do if I am not able to explain well.

My problem is that I can’t send a variable value from one widget to another by using custom events, event dispatchers or casting. Maybe I am not setting up the targets properly or I am missing something very silly.

10 posts - 7 participants