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"

How to connect the variables C ++ in UMG?

Hello I'm trying to HP ProgressBar , and everything led me into a dead end.

My problem is, I have no idea how to use C++ variable in UMG. I want to connect the variables C ++ in UMG and Progress Bar.

Like this.

C++ float CharacterHealth;

to

UMG CharacterHealth Progress Bar.

Excuse me for being so complicated. Please let me know if there is any place to check. Thank you for your detailed answer.

Product Version: Not Selected
Tags:
more ▼

asked Jul 11 '17 at 07:49 AM in Blueprint Scripting

avatar image

lueha55
17 3 5 9

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

1 answer: sort voted first

There is the same procedure as use any C++ variable in a blueprint. Your blueprint class should be descendant class from C++ class with variables to see the variables in the blueprint.

Also you need some C++ event to refresh the progress bar. Or you can do it every tick.

Blueprints, Creating Variables in C++ For Use In BP

Couple month ago I asked similar question :)

How to cast C++ variable to another Blueprint class

more ▼

answered Jul 11 '17 at 09:27 AM

avatar image

SvarogZ
49 10 12 21

avatar image lueha55 Jul 11 '17 at 11:32 AM

Thank you for your kind reply ! I'll have to do it right away.

(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