# Removing the background from my UI Material

**URL:** <https://forums.unrealengine.com/t/removing-the-background-from-my-ui-material/2647493>\
**Category:** UI\
**Tags:** unreal-engine, question\
**Created:** [August 20, 2025, 12:17am UTC](https://forums.unrealengine.com/t/removing-the-background-from-my-ui-material/2647493 "2025-08-20T00:17:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CyberPanda1670](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cyberpanda1670/32/1061941_2.png) [@CyberPanda1670](https://forums.unrealengine.com/u/CyberPanda1670)\
**Post date:** [August 20, 2025, 12:17am UTC](https://forums.unrealengine.com/t/removing-the-background-from-my-ui-material/2647493/1 "2025-08-20T00:17:26Z")

</div>

How can I take the background from my texture and make it disappear in my material?

It’s from a Scene capture 2D so it’s going to follow my character, this probably rules out just masking out a color…

Any suggestions?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/d/37db3347702713612efacf08a37038f3daa6161e.png)

Here’s the Image so you can kinda get the vibes

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [August 21, 2025, 12:20pm UTC](https://forums.unrealengine.com/t/removing-the-background-from-my-ui-material/2647493/2 "2025-08-21T12:20:44Z")

</div>

Hi there,

So it is a RenderTarget Texture.

1. In SceneCaptureComponent you can define ShowOnlyActors or Components and add your character to it or anything else that you want to appear. This will have performance upgrades for sure and neglect the rest of the picture rendering black.
2. You can stencil out the currently created render texture in ui material or other material with chroma key if you defined a color at the RenderTargetTexture and you are not writing black on it. This is a bit tricky to control so cons is that.
3. Better get a scene capture with alpha channel with RenderTargetFormat RGBA8 (with alpha) and Capture source as FinalColor LDR with alpha, simply this texture will have an alpha channel that you can use alpha as mask in your material and for background place anything you want or do more. Since you are not rendering anything but character mask would be the shape of character.

> [@Scene Capture 2D only one actor](https://forums.unrealengine.com/t/scene-capture-2d-only-one-actor/780867/11):
>
> Back with more information! So it looks like it’s tied to both scalability and preview rendering level. Medium or below scalability cuts it off if this Cvar is below 4 r.SceneColorFormat thanks to Kaidoom, Ess, and everyone else in this thread below! So first try to change the scalability to epic, then go over to your RenderTexture and look at just it’s alpha channel and see if it worked out. If it did, head back to the material, cut out the chromakey (which you WILL need if that C…

Don’t forget to one minus alpha in the material
