UKismetRenderingLibrary::RenderTargetCreateStaticTextureCubeEditorOnly
#include "Kismet/KismetRenderingLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Creates a new static TextureCube asset from the current contents of a cube render target, typically used to bake captured reflection or skybox cubemaps. Only works in the editor.
Caveats & Gotchas
- • Editor-only: has no effect in a packaged/cooked build.
- • Blueprint DisplayName is "Render Target Cube Create Static Texture Cube Editor Only" rather than the C++ name.
- • Commonly paired with a SceneCaptureCube component that writes into the RenderTargetCube prior to baking; the cube faces must already be fully rendered for the bake to look correct.
Signature
static UTextureCube* RenderTargetCreateStaticTextureCubeEditorOnly(UTextureRenderTargetCube* RenderTarget, FString Name = "Texture", enum TextureCompressionSettings CompressionSettings = TC_Default, enum TextureMipGenSettings MipSettings = TMGS_FromTextureGroup); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| RenderTarget | UTextureRenderTargetCube* | The source cube render target to bake into a static texture cube asset. | — |
| Name | FString | Base name/path used when creating the new texture asset. | "Texture" |
| CompressionSettings | enum TextureCompressionSettings | Compression settings applied to the resulting texture. | TC_Default |
| MipSettings | enum TextureMipGenSettings | Mip generation settings applied to the resulting texture. | TMGS_FromTextureGroup |
Return Type
UTextureCube* Example
Bake a captured cubemap into an asset C++
#if WITH_EDITOR
UTextureCube* BakedCube = UKismetRenderingLibrary::RenderTargetCreateStaticTextureCubeEditorOnly(CaptureCubeRT, TEXT("/Game/Textures/T_BakedCube"));
#endif Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?