# How can I create a zoomable widget?

**URL:** <https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, question, Blueprint\
**Created:** [November 17, 2024, 11:06pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808 "2024-11-17T23:06:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [November 17, 2024, 11:06pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/1 "2024-11-17T23:06:40Z")

</div>

I’m trying to create a canvas of sorts, the Drawing Area is a border with a Render Target inside it. I want this to be able to zoom so the canvas could increase in size. But using Render Transforms to increase the scale makes the canvas overlap other widgets.

Is there a way to cutout the widget so that it remains within its bounds but still scales? I also need a system to scroll across the canvas once its zoomed in.

Any ideas please?

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [November 17, 2024, 11:13pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/2 "2024-11-17T23:13:11Z")

</div>

I think it can be done through the scroll box but I’m trying to mess with it to see how to do it

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [November 18, 2024, 12:25am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/3 "2024-11-18T00:25:10Z")

</div>

You can use retainer box, it will cut everything outside.

 ![retainer box](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/7/3b7fcb285a9f7b185bd45fa0f0aec2dcebb09afb.jpeg)

I tried named slot, it does not cut, so you can ignore it.

This explains retainerebox:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/3/a936b20c59dba1b834535ecd317ab35306cc1b4b.jpeg "WTF Is? UMG: Retainer Box in Unreal Engine 4 ( UE4 )") ](https://www.youtube.com/watch?v=gcj0odZjKjM)

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [November 18, 2024, 2:25am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/4 "2024-11-18T02:25:14Z")

</div>

Would it allow me to scroll the contents inside?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [November 18, 2024, 7:48am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/5 "2024-11-18T07:48:54Z")

</div>

Check this out, see if it fits:

> [@How to scale/zoom a widget with blueprints?](https://forums.unrealengine.com/t/how-to-scale-zoom-a-widget-with-blueprints/430983/25):
>
> By somewhat popular demand, I’ve updated this to support adding points of interest: re-jiggled the hierarchy by adding an inner canvas with auto size; we now shift that canvas instead of the image, which also moves and scales all elements attached to it

When it comes to clipping, widgets can:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/0/780699b3897dee856a836faff6929c8858ff48ab.png)

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [November 18, 2024, 8:08am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/6 "2024-11-18T08:08:18Z")

</div>

> [@Zarrar2802](#):
>
> Would it allow me to scroll the contents inside?

No it is just to clip to rectangle.

Then use that named slot and your own widget inside to do scrolling:

- create your own widget that scrolls/pans what you need, with for eg anchors, or scroll box
- use that widget to pan stuff, then clip it all with retainer box.

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [November 19, 2024, 4:24am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/7 "2024-11-19T04:24:46Z")

</div>

Would it be possible for you to provide an example of such widget? I’ve been trying to make a render target stretch so that I can use a scroll bar to scroll across the stretches surface

---

<div class="post-metadata">

**Author:** ![Zarrar2802](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zarrar2802/32/710746_2.png) [@Zarrar2802](https://forums.unrealengine.com/u/Zarrar2802)\
**Post date:** [November 19, 2024, 4:25am UTC](https://forums.unrealengine.com/t/how-can-i-create-a-zoomable-widget/2131808/8 "2024-11-19T04:25:02Z")

</div>

This looks promising! I’ll try implementing it in my project as soon as I’m at my desk tomorrow and get back to you with the results
