Navigation
API > API/Editor > API/Editor/MaterialEditor
| Name | FPreviewElement |
| Type | class |
| Header File | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
| Include Path | #include "MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h" |
Syntax
class FPreviewElement : public ICustomSlateElement
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPreviewElement() |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPreviewElement() |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsRealtime | bool | Whether preview is using realtime values | MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h | |
| ExpressionPreview | FMaterialRenderProxy * | Render proxy for the expression preview | MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h | |
| RenderTarget | FSlateMaterialPreviewRenderTarget * | Render target that the canvas renders to | MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool BeginRenderingCanvas
(
const FIntRect& InCanvasRect, |
Sets up the canvas for rendering | MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h | |
void UpdateExpressionPreview
(
UMaterialGraphNode* PreviewNode |
Updates the expression preview render proxy from a graph node on the render thread | MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |