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?
asked Jan 08 '15 at 08:29 AM in Blueprint Scripting
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!
answered Jan 09 '15 at 11:28 PM
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.
answered May 16 '15 at 04:23 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here