#include <MaterialProvider.h>
◆ CommitMaterialSetUpdate()
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.
- Parameters
-
| MaterialSet | new list of materials |
- Returns
- true if successful
◆ GetMaterial()
Get pointer to a Material provided by this Source
- Parameters
-
| MaterialIndex | index of the material |
- Returns
- MaterialInterface pointer, or null if MaterialIndex is invalid
◆ GetMaterialSet()
Get material set provided by this source
- Parameters
-
| MaterialSetOut | returned material set |
| bAssetMaterials | Prefer the underlying asset materials. This may be ignored by targets to which this is not relevant. |
◆ GetNumMaterials()
- Returns
- number of material indices in use by this Component
The documentation for this class was generated from the following file:
- Engine/Source/Runtime/InteractiveToolsFramework/Public/TargetInterfaces/MaterialProvider.h