Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_12
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/MeshMaterialFunctions.h |
| Include | #include "GeometryScript/MeshMaterialFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/MeshMaterialFunctions.cpp |
static UDynamicMesh &42; SetMaterialIDOnTriangles
&40;
UDynamicMesh &42; TargetMesh,
FGeometryScriptIndexList TriangleIDList,
int MaterialID,
bool bDeferChangeNotifications,
UGeometryScriptDebug &42; Debug
&41;
Remarks
Assigns the Material ID to all the triangles specified by the Triangle ID List.
Parameters
| Name | Description |
|---|---|
| TriangleIDList | the triangles in the target mesh that will be updated with the new Material ID |
| MaterialID | the ID to be assigned to each triangle in the input list. |
| bDeferChangeNotifications | if true, the UDynamicMesh does not emit a change event/signal for this modification. |