Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USkinnedMeshComponent
Deprecated * Use USkeletalMeshComponent::SetSkeletalMesh() or SetSkinnedAssetAndUpdate() instead.
- USkinnedMeshComponent::SetSkeletalMesh()
- UDestructibleComponent::SetSkeletalMesh()
- UDebugSkelMeshComponent::SetSkeletalMesh()
- USkeletalMeshComponent::SetSkeletalMesh()
- UDebugSkelMeshComponent::SetSkeletalMesh()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/SkinnedMeshComponent.h |
| Include | #include "Components/SkinnedMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SkinnedMeshComponent.cpp |
virtual void SetSkeletalMesh
&40;
class USkeletalMesh &42; NewMesh,
bool bReinitPose
&41;
Remarks
Change the SkeletalMesh that is rendered for this Component. Will re-initialize the animation tree etc.
Parameters
| Name | Description |
|---|---|
| NewMesh | New mesh to set for this component |
| bReinitPose | Whether we should keep current pose or reinitialize. |