How can I dynamically scale a widget without stretching child widgets?

Hi, I have a widget that scales horizontally throughout the game, and needs to have un-scaled images at both ends. How can I achieve this?

It seems widget width cannot be changed at runtime, and the “size box” does not keep a size when it or its parent is scaled.

Here’s an image of what I’m trying to do:

56088-widgetstretching.png

The simplest method I can come up with is setting each images’ scales to 1/[ParentScale] in event tick. Hoping that there is a widget that handles it better, though.

The solution was to learn more about canvasses and then just have a canvas with some set anchors, and scale up the widget by its anchors instead of the render transform. The images on the sides would then be anchored to the canvas at the sides.