Navigation
API > API/Editor > API/Editor/UnrealEd
This is an abstract base class that is used to define the interface that UnrealEd will use when rendering a given object's thumbnail. The editor only calls the virtual rendering function.
| Name | UThumbnailRenderer |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/ThumbnailRendering/ThumbnailRenderer.h |
| Include Path | #include "ThumbnailRendering/ThumbnailRenderer.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UThumbnailRenderer : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UThumbnailRenderer
Derived Classes
UThumbnailRenderer derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UThumbnailRenderer
(
const FObjectInitializer& ObjectInitializer |
ThumbnailRendering/ThumbnailRenderer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool AllowsRealtimeThumbnails
(
UObject* Object |
Checks to see if the specified asset supports realtime thumbnails, which will cause them to always be rerendered to reflect any changes made to the asset. | ThumbnailRendering/ThumbnailRenderer.h | |
virtual bool CanVisualizeAsset
(
UObject* Object |
Returns true if the renderer is capable of producing a thumbnail for the specified asset. | ThumbnailRendering/ThumbnailRenderer.h | |
virtual void Draw
(
UObject* Object, |
Draws a thumbnail for the object that was specified. | ThumbnailRendering/ThumbnailRenderer.h | |
virtual void Draw
(
UObject* Object, |
Draws a thumbnail for the object that was specified. | ThumbnailRendering/ThumbnailRenderer.h | |
virtual EThumbnailRenderFrequency GetThumbnailRenderFrequency
(
UObject* Object |
Override this method to control the render frequency for thumbnails in your editor Generally speaking you should use Realtime if you want an animated thumbnail, but if not it is expensive to use (per-frame draws) If not using realtime, the next best default is OnAssetSave, which updates the thumbnail only save. | ThumbnailRendering/ThumbnailRenderer.h | |
virtual void GetThumbnailSize
(
UObject* Object, |
Calculates the size the thumbnail would be at the specified zoom level | ThumbnailRendering/ThumbnailRenderer.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FGameTime GetTime() |
ThumbnailRendering/ThumbnailRenderer.h | ||
static void RenderViewFamily
(
FCanvas* Canvas, |
ThumbnailRendering/ThumbnailRenderer.h | ||
static void RenderViewFamily
(
FCanvas* Canvas, |
Renders the thumbnail's view family. | ThumbnailRendering/ThumbnailRenderer.h |