Navigation
API > API/Runtime > API/Runtime/UMG
Turn static mesh data into Slate's simple vector art format.
| Name | USlateVectorArtData |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Slate/SlateVectorArtData.h |
| Include Path | #include "Slate/SlateVectorArtData.h" |
Syntax
UCLASS (MinimalAPI)
class USlateVectorArtData : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USlateVectorArtData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USlateVectorArtData
(
const FObjectInitializer& ObjectInitializer |
Slate/SlateVectorArtData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ExtentMax | FVector2D | Slate/SlateVectorArtData.h | ||
| ExtentMin | FVector2D | Slate/SlateVectorArtData.h | ||
| IndexData | TArray< uint32 > | Slate/SlateVectorArtData.h | ||
| Material | TObjectPtr< UMaterialInterface > | Slate/SlateVectorArtData.h | ||
| MeshAsset | TObjectPtr< UStaticMesh > | The mesh data asset from which the vector art is sourced | Slate/SlateVectorArtData.h |
|
| SourceMaterial | TObjectPtr< UMaterialInterface > | The material which we are using, or the material from with the MIC was constructed. | Slate/SlateVectorArtData.h |
|
| VertexData | TArray< FSlateMeshVertex > | Slate/SlateVectorArtData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialInstanceDynamic * ConvertToMaterialInstanceDynamic() |
Convert the material into an MID and get a pointer to the MID so that parameters can be set on it. | Slate/SlateVectorArtData.h | |
void EnsureValidData() |
Convert the static mesh data into slate vector art on demand. Does nothing in a cooked build. | Slate/SlateVectorArtData.h | |
FVector2D GetDesiredSize() |
Slate/SlateVectorArtData.h | ||
FVector2D GetExtentMax() |
Slate/SlateVectorArtData.h | ||
FVector2D GetExtentMin() |
Slate/SlateVectorArtData.h | ||
const TArray< uint32 > & GetIndexData() |
Access the indexes for the order in which to draw the vertexes. | Slate/SlateVectorArtData.h | |
UMaterialInterface * GetMaterial() |
Material to be used with the specified vector art data. | Slate/SlateVectorArtData.h | |
const TArray< FSlateMeshVertex > & GetVertexData() |
Access the slate vertexes. | Slate/SlateVectorArtData.h |