Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_StaticMes-
Description
Get the asset materials from the static mesh asset. These will match the DynamicMesh material if CopyMeshFromStaticMesh was used to create a DynamicMesh with bUseSectionMaterials=false
| Name | GetMaterialListFromStaticMesh |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshAssetFunctions.h |
| Include Path | #include "GeometryScript/MeshAssetFunctions.h" |
| Source | /Engine/Plugins/Runtime/GeometryScripting/Source/GeometryScriptingCore/Private/MeshAssetFunctions.cpp |
UFUNCTION (BlueprintCallable, Category="GeometryScript|StaticMesh", Meta=(HidePin="Debug"))
static void GetMaterialListFromStaticMesh
(
const UStaticMesh * FromStaticMeshAsset,
TArray < UMaterialInterface * > & MaterialList,
TArray < FName > & MaterialSlotNames,
UGeometryScriptDebug * Debug
)