SMeshWidget::ConvertToMID

Switch from static material to material instance dynamic.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Slate/SMeshWidget.h

Include

#include "Slate/SMeshWidget.h"

Source

/Engine/Source/Runtime/UMG/Private/Slate/SMeshWidget.cpp

Syntax

UMaterialInstanceDynamic * ConvertToMID
(
    uint32 MeshId
)

Remarks

Switch from static material to material instance dynamic.

Returns

The MID for this Asset on which parameters can be set.

Parameters

Parameter

Description

MeshId

The index of the mesh; returned from AddMesh.