Cast to.. input type?

Hey Everyone,

I have trouble figuring out how to communicate between two blueprints. I want to make something like doorsigns for an office for example. I created a datatabel and a structure and that stuff. The sign blueprint works fine. Theres a variable where I store the rowname to display the right name on the sign. Now I want to click on one of the signs what opens a UI widget where some more information is display. The problem is that i can´t get it working because I don´t know what kind of input the “cast to” node needs to be.

Can anyone help me with that?

You don’t need to cast to Facility Test Widget because you already have a reference to the widget when you created it. Drag off of the return value from the ‘Create Facility Test Widget’ node and set ‘Row Name’ from there.

You could probably also drag off the return value and plug it into your cast to node, though it might give you a warning telling you you don’t need to cast since its already itself.

Hey there, go to the Row Name variable and set it Instance Editable and Expose on Spawn and compile your widget. Go to the Create Widget and you should have the Rown Name parameter exposed, just connect Row there and you should be good to go, you dont need anything after the set input mode.

I always forget you can do that. Such a cool feature.

You´re right! That´s it!
Thanks for the quick answer.
Have a great day!!

Is that way better for the performance, or what´s the major difference?

If there is a performance difference, I’d image it would be negligible. Really, its just cleaner. Also, personally, I think its just cooler.

okay. I changed it to the “expose” way, it realy looks neat! Thank you!