How to pass data from widget blueprint to blueprint

just started learning blueprints. There is a problem, when I press a button, I want to transfer an integer variable to Blueprint so that a certain object will spawn. Unreal constantly have an error that it does not have access to data, but if you transfer data from a regular blueprint to a regular one, everything is fine. In general, as I understand it, the problem is precisely that I am trying to transfer data from the widget blueprint to the regular one. Please tell me how to solve this problem))

1 Like

In the widget, make a reference to the type of blueprint that’s creating it, make it instance editable and expose on spawn

image

Then you can set it when you create the widget

image

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.