FMeshEditorUtilities::AssignMaterialToPolygons

Assigns a material to polygons

Windows
MacOS
Linux

References

Module

MeshEditor

Header

/Engine/Plugins/Editor/MeshEditor/Source/MeshEditor/Public/MeshEditorUtilities.h

Include

#include "MeshEditorUtilities.h"

Syntax

static bool AssignMaterialToPolygons
(
    UMaterialInterface * SelectedMaterial,
    UEditableMesh * EditableMesh,
    const TArray< FMeshElement > & PolygonElements
)

Remarks

Assigns a material to polygons

Returns

whether successful

Parameters

Parameter

Description

SelectedMaterial

The material to assign

EditableMesh

The mesh for which the polygons belong to

PolygonElements

The polygons to assign the material to

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss