Navigation
API > API/Plugins > API/Plugins/ModelingComponents
Description
Fetch the Material Set on the object underlying a ToolTarget. In cases where there are (eg) separate Component and Asset material sets, prefers the Component material set
| Name | UE::ToolTarget::GetMaterialSet |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/ModelingToolTargetUtil.h |
| Include Path | #include "ModelingToolTargetUtil.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/ModelingToolTargetUtil.cpp |
namespace UE
{
namespace ToolTarget
{
FComponentMaterialSet UE::ToolTarget::GetMaterialSet
(
UToolTarget * Target,
bool bPreferAssetMaterials
)
}
}
a valid MaterialSet
Parameters
| Name | Remarks |
|---|---|
| bPreferAssetMaterials | if true, prefer an Asset material set, if available |