Navigation
API > API/Editor > API/Editor/UnrealEd
Async process to get a texture copied to an object thumbnail
Wait for the TextureReadback to be ready
Once TextureReadback is ready, enqueue a render command to copy its data to the object thumbnail
Once the render command completes, ObjectThumbnail can be read
| Name | FAsyncObjectThumbnail |
| Type | struct |
| Header File | /Engine/Source/Editor/UnrealEd/Public/ObjectTools.h |
| Include Path | #include "ObjectTools.h" |
Syntax
struct FAsyncObjectThumbnail
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAsyncObjectThumbnail
(
int32 InWidth, |
ObjectTools.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ImageHeight | int32 | ObjectTools.h | ||
| ImageWidth | int32 | ObjectTools.h | ||
| ObjectThumbnailFuture | TOptional< TFuture< FObjectThumbnail > > | ObjectTools.h | ||
| ObjectThumbnailPromise | TSharedPtr< TPromise< FObjectThumbnail > > | ObjectTools.h | ||
| TextureReadback | TSharedRef< FRHIGPUTextureReadback > | ObjectTools.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FObjectThumbnail ConsumeObjectThumbnailUnchecked() |
Returns a copy of ObjectThumbnail and empties the Future IsObjectThumbnailReady must be true before calling this function | ObjectTools.h | |
void EnqueueReadbackDataCopy() |
Enqueues a render command to copy the texture readback data to the ObjectThumbnail. | ObjectTools.h | |
bool IsObjectThumbnailReady() |
ObjectThumbnail is available. | ObjectTools.h | |
bool IsTextureReadbackReady() |
Checks if the texture data is available to be readback. | ObjectTools.h |