Navigation
API > API/Editor > API/Editor/MaterialEditor
| Name | FPreviewViewport |
| Type | class |
| Header File | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
| Include Path | #include "MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h" |
Syntax
class FPreviewViewport : public ISlateViewport
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPreviewViewport
(
UMaterialGraphNode* InNode |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FPreviewViewport() |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MaterialNode | UMaterialGraphNode * | Material node to get expression preview from | MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h | |
| PreviewElement | FThreadSafePreviewPtr | Custom Slate Element to display the preview | MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FIntPoint GetSize() |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h | ||
virtual FSlateShaderResource * GetViewportRenderTargetTexture() |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h | ||
virtual void OnDrawViewport
(
const FGeometry& AllottedGeometry, |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h | ||
virtual bool RequiresVsync() |
MaterialEditor/MaterialNodes/SGraphNodeMaterialBase.h |