Navigation
API > API/Plugins > API/Plugins/ModelingComponents
References
| Module | ModelingComponents |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/ModelingToolTargetUtil.h |
| Include | #include "ModelingToolTargetUtil.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/ModelingToolTargetUtil.cpp |
namespace UE
{
namespace ToolTarget
{
EDynamicMeshUpdateResult UE&58;&58;ToolTarget&58;&58;CommitDynamicMeshUpdate
&40;
UToolTarget &42; Target,
const UE::Geometry::FDynamicMesh3 & UpdatedMesh,
bool bHaveModifiedTopology,
const FConversionToMeshDescriptionOptions & ConversionOptions,
const FComponentMaterialSet &42; UpdatedMaterials
&41;
}
}
Remarks
Update the Mesh in a ToolTarget based on the provided DynamicMesh, and optional material set EDynamicMeshUpdateResult::Ok on success
Parameters
| Name | Description |
|---|---|
| bHaveModifiedTopology | If the update only changes vertex or attribute values (but not counts), then in some cases a more efficient and/or less destructive update can be applied to the Target |
| ConversionOptions | if the commit to the Target involves conversion to MeshDescription, these options can configure that conversion |
| UpdatedMaterials | optional new material set that will be applied to the updated Target, and the Target Asset if available. If more control is needed use CommitMaterialSetUpdate() |