Render an Unwrapped Static Mesh Material to Textures

Choose your operating system:

Windows

macOS

Linux

This function unwraps a Static Mesh in order to bake the result of a custom material using mesh UVs. This can be useful to optimize out complex material instructions that can sometimes be a useful way to texture assets.

It unwraps a Static Mesh asset that is placed in the level. The mesh should have a material with the companion material function "UnwrapUVsforRender" hooked up to the WorldPositionOffset input. There must also be a few parameters hooked up to the material function. A scalar parameter named "Size" should be hooked up to the Size input; a vector parameter named "RenderLocation" must be hooked up to render location, and a scalar parameter named "Unwrap" should be hooked up to the Unwrap input.

Additionally, the UV input allows you to specify which UV channel to unwrap. The default is 1 which is the lightmap UV channel for most Static Meshes.

To unwrap the mesh, simply click the Eye dropper icon shown below and then select the desired mesh from inside the world (it does not matter where you place the mesh initially). Then check the "unwrap" box.

07.JPG

08.JPG

Rendering the Texture

Select the desired buffer targets under Capture Settings ; Make sure the High resolution screenshot window is open and the Include buffer visualization option is enabled; Play the game in a New Window , bring up the console using the ~ key and type "ke * rendertextures" at the console and hit enter.

renderTextures.png

You should get a popup message indicating that images were saved, the message is actually a clickable link to the folder location. If you are not able to click the link in time, you can find the saved textures here:

\YourProject\Saved\Screenshots\Windows\

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss