Any way to create a thumbnail for slate in game?

Hey guys, is there any way to create a thumbnail for a material (Like you see in the content browser) at runtime to display in a slate interface? I’m trying to create a basic material switcher, and I’ve got a list of UMaterialInterface*, but I’m not sure about the best way to convert it to something I can display in Slate.

Any ideas?

Hi !

You can use RenderTargets to render whatever you want to a Texture and use that texture in Slate.

So one solution for your scenario would be to have a “mini” scene or some part where you apply the material to a sphere and capture that using your render target.

Hope this helps.

Cheers,
darkZ

That’s not a bad idea, haven’t touched RenderTargets yet, but I’ll have a look, thanks for the tip :slight_smile: