/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/ModelingToolTargetUtil.h
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
a valid MaterialSet
namespace UE { namespace ToolTarget { [FComponentMaterialSet](API\Runtime\InteractiveToolsFramework\TargetInterfaces\FComponentMaterialSet) UE::ToolTarget::GetMaterialSet ( [UToolTarget](API\Runtime\InteractiveToolsFramework\ToolTargets\UToolTarget) * Target, bool bPreferAssetMaterials ) } }