Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeleton
Description
Merge Bones (RequiredBones from InSkinnedAsset) to BoneTrees if not exists
Note that this bonetree can't ever clear up because doing so will corrupt all animation data that was imported based on this If nothing exists, it will build new bone tree
| Name | MergeBonesToBoneTree |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/Skeleton.h |
| Include Path | #include "Animation/Skeleton.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/Skeleton.cpp |
bool MergeBonesToBoneTree
(
const USkinnedAsset * InSkinnedAsset,
const TArray < int32 > & RequiredRefBones,
bool bShowProgress
)
true if success
Parameters
| Name | Remarks |
|---|---|
| InSkinnedAsset | : Mesh to build from. |
| RequiredRefBones | : RequiredBones are subset of list of bones (index to InSkinnedAsset->RefSkeleton) Most of cases, you don't like to add all bones to skeleton, so you'll have choice of cull out some |