Navigation
API > API/Developer > API/Developer/SkeletalMeshUtilitiesCommon > API/Developer/SkeletalMeshUtilitiesCommon/FStaticToSkeletalMeshConverter
Description
Initialize a skeletal mesh from the given static mesh and a skeleton. The mesh will initially be created with a rigid binding on the root bone.
| Name | InitializeSkeletalMeshFromStaticMesh |
| Type | function |
| Header File | /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Public/StaticToSkeletalMeshConverter.h |
| Include Path | #include "StaticToSkeletalMeshConverter.h" |
| Source | /Engine/Source/Developer/SkeletalMeshUtilitiesCommon/Private/StaticToSkeletalMeshConverter.cpp |
static bool InitializeSkeletalMeshFromStaticMesh
(
USkeletalMesh * InSkeletalMesh,
const UStaticMesh * InStaticMesh,
const FReferenceSkeleton & InReferenceSkeleton,
const FName InBindBone
)
Parameters
| Name | Remarks |
|---|---|
| InSkeletalMesh | The skeletal mesh to initialize. It has to be freshly created and be completely empty. |
| InStaticMesh | The static mesh to convert from. |
| InReferenceSkeleton | The reference skeleton to use. |
| InBindBone | The bone to bind to. If no bone name is given, the binding defaults to the root bone. |