x

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"

Dynamics text in umg

Quick question, how would I dynamically change text on a umg widget to check if the player is standing, prone etc, I gather I would use Boolean a to check the current position, but how to change the text in umg

Product Version: UE 4.17
Tags:
more ▼

asked Oct 16 '17 at 02:03 PM in Blueprint Scripting

avatar image

Juxt4posed
38 1 6 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You can create a text variable in the widget and bind it to the text block. And then using widget reference, update that variable.

Alternatively, you can expose the text block itself as a variable and update it manually.

more ▼

answered Oct 16 '17 at 02:40 PM

avatar image

Everynone
12.1k 71 24 49

avatar image Juxt4posed Oct 17 '17 at 09:08 AM

i have tried that, i cant seem to edit text outside of the widget, and cant edit it in the widget blueprint

avatar image Everynone Oct 17 '17 at 09:57 AM

It would be easier to advise if you described what is not working and how you're trying to do it. Or best, upload an image. Generally speaking, updating the widget directly looks like this:

alt text

Get the reference to the widget, get the reference to the exposed text block, set its text.

[...] and cant edit it in the widget blueprint

This is one is a bit puzzling. You cannot edit text blocks in the widget designer?

alt text

Also, maybe you missed that feature but once you've selected a widget, you have the option to expose it as variable. It's at the very top of the details panel, a checkbox that reads isVariable. Ticking it will allow you to obtain the reference to that particular widget and update it during run time.

capture.png (34.4 kB)
notused.png (21.3 kB)
avatar image Juxt4posed Oct 17 '17 at 11:25 AM

i can edit in the widget designer, but not the widget blueprint panel, even after declaring it as a variable

avatar image Everynone Oct 17 '17 at 12:02 PM

I do not understand what you're trying to achieve.

According to the topic, you want to dynamically update some text in the widget; the first screenshot I posted demonstrates exactly that. Which part of it is not working for you?

but not the widget blueprint panel

Could you show what you are trying to edit?

avatar image Juxt4posed Oct 17 '17 at 12:05 PM

will do when i have access to the files

(comments are locked)
10|2000 characters needed characters left
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