Navigation
API > API/Runtime > API/Runtime/SkeletalMeshDescription > API/Runtime/SkeletalMeshDescription/FSkeletalMeshOperations
Description
Removes the specified bones, and its children, from the mesh on the given skin weight profiles. If the list of profiles is empty, then the bones are removed from all profiles. Any bones to remove that don't exist on the mesh will be ignored. All weights associated with removed bones are shifted to that bone's parent. If the mesh has no bone attributes, this operation is a no-op and the mesh is left unchanged.
It is not allowed to remove the root bone.
| Name | RemoveBones |
| Type | function |
| Header File | /Engine/Source/Runtime/SkeletalMeshDescription/Public/SkeletalMeshOperations.h |
| Include Path | #include "SkeletalMeshOperations.h" |
| Source | /Engine/Source/Runtime/SkeletalMeshDescription/Private/SkeletalMeshOperations.cpp |
static void RemoveBones
(
FMeshDescription & InOutMeshDescription,
TConstArrayView< FName > InBoneNames,
const UE::AnimationCore::FBoneWeightsSettings & InBoneWeightSettings,
TConstArrayView< FName > InProfileNames
)
Parameters
| Name | Remarks |
|---|---|
| InOutMeshDescription | The skeletal mesh object to remove bones and bone bindings from. |
| InBoneNames | The list of bone names to remove. |
| InBoneWeightSettings | The settings to use when setting the new bone weights. |
| InProfileNames | The list of skin weight profiles to operate on. If empty, all skin weight profiles will be processed. |