Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/SMLDeformerNewVertexAttributeDia-
Description
Create a float based vertex attribute with a given name, using a specific default value. When there already is an attribute with the specified name, then false is returned and nothing is changed. When the attribute name is unique, the new attribute will be created and all vertices will have the default value. This will create the attribute on LOD 0.
| Name | CreateVertexAttribute |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/SMLDeformerNewVertexAttributeDialog.h |
| Include Path | #include "SMLDeformerNewVertexAttributeDialog.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/SMLDeformerNewVertexAttributeDialog.cpp |
static bool CreateVertexAttribute
(
USkeletalMesh & SkeletalMesh,
const FString & AttributeName,
float DefaultValue
)
Returns true on success, or false when failed. A fail can occur when there is already an attribute with the given name or when no Mesh Description can be found.