Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeletalMeshComponent
Description
Change the SkeletalMesh that is rendered for this Component. Will re-initialize the animation tree etc.
Virtual Inheritance
- USkinnedMeshComponent::SetSkeletalMesh → USkeletalMeshComponent::SetSkeletalMesh
| Name | SetSkeletalMesh |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include Path | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SkeletalMeshComponent.cpp |
virtual void SetSkeletalMesh
(
class USkeletalMesh * NewMesh,
bool bReinitPose
)
Parameters
| Name | Remarks |
|---|---|
| NewMesh | New mesh to set for this component |
| bReinitPose | Whether we should keep current pose or reinitialize. |