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 use text as an object?

When applying objects and you want to use them in your game as something it's easy. however for my soccer game i want to add a text into my game and I spent hours trying to figure it out. What I'm saying is i want to add the word "Dont!" And use it in my game it will be that when the user taps on this text the game will end.

Product Version: Not Selected
more ▼

asked Dec 19 '14 at 02:03 AM in Using UE4

avatar image

12 7 10 12

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

1 answer: sort voted first

Hello Kareem,

I think you are looking for UMG. If you would like to know a little more UMG, please take a look at the posts below.



Hope it helps!

more ▼

answered Dec 19 '14 at 09:07 AM

avatar image

1.8k 76 19 143

avatar image KareemTheGod Dec 19 '14 at 11:06 PM

Sorry man nothing helps me what i want is that any word can be used in my game and i can actually click on it and it would DO something

avatar image dissonanceint Dec 19 '14 at 11:40 PM

UMG is what you want. It can add text and buttons. Give the tutorials a go and read the documentation.

avatar image theonecalledtom Dec 20 '14 at 04:25 AM

Use UMG or a combination of Canvas text drawing and your own mouse click tracking (is mouse in area of text? is mouse clicked? do my thing).

avatar image Gleb.Bulgakov Dec 22 '14 at 08:42 AM

Hi Kareem,

I have add a step-by-step example for you. 1. First, you should create widget blueprint (Content Browser -> Create/New -> UI -> Widget Blueprint) 2. Open it and add a button and text from Pallete to Visual Disigner. Text add to button (all elements have hierarchical structure). If you want to hide button, set up alpha for Background Color to 0 (Details -> Appearance).alt text 4. Add event alt text 5. Show menu alt text

Best regards, Gleb

menu1.png (111.3 kB)
menu2.png (90.4 kB)
menu3.png (62.4 kB)
avatar image KareemTheGod Dec 22 '14 at 04:49 PM

Thanks for taking your time Gleb appreciate it I may now use text !

(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