Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/UGeometryScriptLibrary_StaticMes-
Description
Converts material map to a material list and a slot names list. Null materials will be kept in the list, and the list will have the same number of elements as the map.
| Name | ConvertMaterialMapToMaterialList |
| 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|Materials")
static void ConvertMaterialMapToMaterialList
(
const TMap < FName , UMaterialInterface * > & MaterialMap,
TArray < UMaterialInterface * > & MaterialList,
TArray < FName > & MaterialSlotNames
)