UE::WeightMaps::GetVertexWeightMap

Extract a per-vertex weight map from a MeshDescription If the attribute with the given name is not found, a WeightMap initialized with the default value is returned

Windows
MacOS
Linux

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/WeightMapUtil.h

Include

#include "WeightMapUtil.h"

Source

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Private/WeightMapUtil.cpp

Syntax

namespace UE
{
    namespace WeightMaps
    {
        bool UE::WeightMaps::GetVertexWeightMap
        (
            const FMeshDescription * Mesh,
            FName AttributeName,
            FIndexedWeightMap1f & WeightMap,
            float DefaultValue
        )
    }
}

Remarks

Extract a per-vertex weight map from a MeshDescription If the attribute with the given name is not found, a WeightMap initialized with the default value is returned

Returns

false if weight map was not found

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss