Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.14
more ▼

asked Jan 16 '18 at 09:34 PM in Blueprint Scripting

avatar image

3 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Pressing a button can simply change the text like so:

alt text

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.

capture.png (36.8 kB)
more ▼

answered Jan 16 '18 at 10:09 PM

avatar image

15.3k 77 26 64

avatar image definejudgement Jan 16 '18 at 10:23 PM

Thanks for the reply, however this happens when i try to use 'set text'alt text

ablueprint1.png (353.0 kB)
avatar image Everynone Jan 16 '18 at 10:30 PM

Text Render Component (Target of this node) is very different from widget text block.

You should take advantage of the context sensitive nature of the node filtering. Instead of placing a SetText node, drag a wire from TextBlock150 and search for SetText - this will always get you a compatible option.

But what you really what to do is something I described above - simply show the text block (that you previously filled with text):

alt text

When you design the menu, keep the text blocks Hidden, pressing a button will show the text.

capture.png (37.9 kB)
avatar image definejudgement Jan 16 '18 at 10:33 PM

Wow, i didn't think about doing it that way, completely overlooked it. Thanks for the help!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question