Transfer a string to a button widget
How can I transfer a string value from the Level Blueprint to a button in a blueprint-widget. What would be the right way to go about Blueprints? Thanks for helping. Andreas
asked Jan 20 '15 at 09:41 PM in Blueprint Scripting
I'm not exactly sure what you're asking but - i think what you might want is an interface. An interface is a special kind of blueprint with no graph that defines a set of functions. You can then attach this to any object you want including your button.
You define in your button how this interface is implemented. Then, you can call this interface on the instance of your button in the level blueprint and do what you want with it - including setting a string.
You could create a function straight onto your button, but if you make an interface you can use this again with other objects you may want to have this behaviour on.
answered Jan 24 '15 at 11:55 AM
Asher S Einhorn
Follow this question
Once you sign in you will be able to subscribe for any updates here