UKismetRenderingLibrary::ConvertRenderTargetToTextureCubeEditorOnly
#include "Kismet/KismetRenderingLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Copies the current contents of a cube render target into an existing TextureCube asset, overwriting its pixel data. Only works in the editor.
Caveats & Gotchas
- • Requires an already-existing TextureCube asset to write into rather than creating one.
- • Editor-only: has no effect in a packaged/cooked build.
- • All six cube faces are copied from the render target's current state — capture with a SceneCaptureCube must have finished rendering all faces first.
Signature
static void ConvertRenderTargetToTextureCubeEditorOnly(UObject* WorldContextObject, UTextureRenderTargetCube* RenderTarget, UTextureCube* Texture); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| WorldContextObject | UObject* | Object used to resolve the current world. | — |
| RenderTarget | UTextureRenderTargetCube* | The source cube render target to copy from. | — |
| Texture | UTextureCube* | An existing TextureCube asset whose pixel data will be overwritten. | — |
Return Type
void Example
Refresh an existing cubemap asset C++
#if WITH_EDITOR
UKismetRenderingLibrary::ConvertRenderTargetToTextureCubeEditorOnly(this, CaptureCubeRT, ExistingCubemapAsset);
#endif Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?