Navigation
API > API/Plugins > API/Plugins/ModelingComponentsEditorOnly > API/Plugins/ModelingComponentsEditorOnly/ToolTargets > API/Plugins/ModelingComponentsEditorOnly/ToolTargets/UDynamicMeshComp-
- IMaterialProvider::CommitMaterialSetUpdate()
- UDynamicMeshComponentToolTarget::CommitMaterialSetUpdate()
References
| Module | ModelingComponentsEditorOnly |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponentsEditorOnly/Public/ToolTargets/DynamicMeshComponentToolTarget.h |
| Include | #include "ToolTargets/DynamicMeshComponentToolTarget.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponentsEditorOnly/Private/ToolTargets/DynamicMeshComponentToolTarget.cpp |
virtual bool CommitMaterialSetUpdate
&40;
const FComponentMaterialSet & MaterialSet,
bool bApplyToAsset
&41;
Remarks
Commit an update to the material set. This may generate a transaction.
Note that a target may not allow applying the material to an underlying asset, or may not even allow having the material applied to the instance, in which case the function will return false without doing anything.
TODO: We may decide that we want some functions to query whether the object allows one or the other, or we may break this out into a separate interface. We'll wait to see when this actually becomes necessary to see the most convenient way to go at that point. true if successful
Parameters
| Name | Description |
|---|---|
| MaterialSet | new list of materials |