How to spawn text in 3d widget canvas on button press?
Hello, I want to create a 3d widget that has different buttons that are able to be clicked on which would then result in text showing up. for example: if i click on a button that says 'details' then text that i have written will appear on the 3d widget canvas.
I want something like this https://www.youtube.com/watch?v=6Y_yY5GtWto&t=488s
I have tried following the video above but since it's not a tutorial from scratch, i have been struggling with following i. Thanks
asked Jan 16 '18 at 09:34 PM in Blueprint Scripting
Pressing a button can simply change the text like so:
You can select a text block and expose it as variable at the very top of the details panel. Which part of what you want to achieve are you having problems with precisely?
To directly answer the question in the topic: for something as simple as showing the text at a button press, you do not need to spawn anything. It's much easier and convenient to put the ready text in the box and show it instead. In this case pressing a button will change the Visibility of the Text Block.
Spawning is handy when you do not know how many elements you will need in advance.
Follow this question
Once you sign in you will be able to subscribe for any updates here