Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_StaticMes-
Description
Extracts the Material List and corresponding Material Indices from the specified LOD of the Skeletal Mesh Asset. If Copy Mesh To Skeletal Mesh was used to create a Dynamic Mesh, then the returned Material List can be passed directly to a Dynamic Mesh Component.
Note that the LOD Index in RequestedLOD will be silently clamped to the available number of LODs
| Name | GetLODMaterialListFromSkeletalMesh |
| 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|SkeletalMesh",
Meta=(DisplayName="Get LOD Material List From Skeletal Mesh", ExpandEnumAsExecs="Outcome"))
static void GetLODMaterialListFromSkeletalMesh
(
USkeletalMesh * FromSkeletalMeshAsset,
FGeometryScriptMeshReadLOD RequestedLOD,
TArray < UMaterialInterface * > & MaterialList,
TArray < int32 > & MaterialIndex,
TArray < FName > & MaterialSlotNames,
EGeometryScriptOutcomePins & Outcome,
UGeometryScriptDebug * Debug
)
Parameters
| Name | Remarks |
|---|---|
| MaterialIndex | this returned array is the same size as MaterialList, with each value the index of that Material in the Skeletal Mesh's Material List |
| MateriaSlotNames | this returned array is the same size as MaterialList, with each value the Slot Name of that Material in the Skeletal Mesh's Material List |