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"

Add Child CanvasPanel Image Clipping

I have a widget blueprint "HUD", that has a widget blueprint "Radar" (on the right side, anchored to the upper right). Within the Radar blueprint, I dynamically create a list of radar icon blueprint widgets and use the Add Child node to add them as children of the Radar's CanvasPanel. (HUD -> Radar -> Radar Icons)

The radar icons are positioned correctly, however the top of the radar icon image is clipped off (visibly cut in half). Additionally, it doesn't seem to obey the zorders that are set in the radar icon image widgets within their widget blueprint, they seem to be random (some on top of the Radar image, some below).

Any ideas what can cause these issues and how they can be corrected?

Product Version: Not Selected
Tags:
more ▼

asked Jan 08 '15 at 08:29 AM in Blueprint Scripting

avatar image

sidno
53 8 8 17

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

2 answers: sort voted first

OK, so I added an Overlay Panel to my Canvas Panel and now do Add Child to the Overlay Panel for each dynamically created radar icon image widget and now it works! No more clipping and now it obeys the zorder of the overlay panel.

No idea why this extra Overlay Panel is required for the dynamic elements and can't just all live on the same root Canvas Panel. Oh well, I'm just glad I randomly decided to try this!

more ▼

answered Jan 09 '15 at 11:28 PM

avatar image

sidno
53 8 8 17

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

After you create the widget, use the Set Auto Size node on the newly created child and set it to true. The widget will now displays properly and won't be clipped anymore.

more ▼

answered May 16 '15 at 04:23 AM

avatar image

Onoa
225 14 27 41

(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