Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Slate
Inheritance Hierarchy
- SLeafWidget
- FGCObject
- SMeshWidget
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Slate/SMeshWidget.h |
Include | #include "Slate/SMeshWidget.h" |
Syntax
class SMeshWidget :
public SLeafWidget,
public FGCObject
Remarks
A widget that draws vertexes provided by a 2.5D StaticMesh. The Mesh's material is used. Hardware instancing is supported.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< FRenderData, TInlineAllocator< 3 > > | RenderData |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
uint32 | AddMesh
(
USlateVectorArtData& InMeshData |
Draw the InStaticMesh when this widget paints. |
![]() |
uint32 | AddMeshWithInstancing
(
USlateVectorArtData& InMeshData, |
Much like AddMesh, but also enables instancing support for this MeshId. |
![]() |
void | AddRenderRun
(
uint32 InMeshIndex, |
Tell the widget to draw instances of a mesh a given number of times starting at a given offset. |
![]() |
void | ClearRuns
(
int32 NumRuns |
Discard any previous runs and reserve space for new render runs if needed. |
![]() |
void | Construct
(
const FArguments& Args |
|
![]() |
UMaterialInstanceDynamic * | ConvertToMID
(
uint32 MeshId |
Switch from static material to material instance dynamic. |
![]() |
void | EnableInstancing
(
uint32 MeshId, |
Enable hardware instancing |
![]() ![]() |
void | PushUpdate
(
uint32 VectorArtId, |
|
![]() ![]() |
void | PushUpdate
(
uint32 VectorArtId, |
|
![]() |
void | UpdatePerInstanceBuffer
(
uint32 MeshId, |
Updates the per instance buffer. Automatically enables hardware instancing. |
Overridden from SWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FVector2D | ComputeDesiredSize
(
float |
Overwritten from SWidget. |
![]() ![]() ![]() |
int32 | OnPaint
(
const FPaintArgs& Args, |
Overwritten from SWidget. |
Overridden from FGCObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddReferencedObjects
(
FReferenceCollector& Collector |
~ FGCObject |
![]() ![]() ![]() |
FString | Overload this method to report a name for your referencer |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FArguments | ||
![]() |
FRenderData |