Removing the background from my UI Material

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?

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

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.

Don’t forget to one minus alpha in the material