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 Contract UMG Border widget

In our game, when the crosshairs point at an NPC or vehicle, a health bar and other information is displayed. The 5 kinds of information that is displayed are each stored in a Horizontal Text box and then if applicable, these are added to Vertical Text Box that is a child of a Border. The border correctly "Sizes to Content" when the particular health bar is displayed, and grows if the next AI has more objects in their health bar (e.g., one may have just health, another may have health and armor, and yet another may have health, armor and shield).

The border does not shrink back down from whatever maximum size it's expanded to, it remains at the largest size it's expanded to. How do I get the border to go back to it's original size on each new AI that is targeted?

Though blueprint is preferred in this one case, a C++ solution would be acceptable as I do have an extended UMG Class for the HUD currently doing nothing.

Edit: This problem still exists for us on 4.19. Can this be considered a bug or is it considered expected functionality. It seems the box should shrink to it's content? I'm adding "bug report" in this edit to hopefully get some information from devs. Thanks.

Product Version: UE 4.19
more ▼

asked Jul 26 '16 at 11:24 PM in Using UE4

avatar image

480 26 12 44

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

0 answers: sort voted first
Be the first one to answer this question
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