Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/IMaterialProvider
Description
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.
| Name | CommitMaterialSetUpdate |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/TargetInterfaces/MaterialProvider.h |
| Include Path | #include "TargetInterfaces/MaterialProvider.h" |
bool CommitMaterialSetUpdate
(
const FComponentMaterialSet & MaterialSet,
bool bApplyToAsset
)
true if successful
Parameters
| Name | Remarks |
|---|---|
| MaterialSet | new list of materials |