Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/USkeletalMeshComponent
Deprecated * Use USkeletalMeshComponent::SetSkeletalMesh() or SetSkinnedAssetAndUpdate() instead.
- USkinnedMeshComponent::SetSkeletalMesh()
- USkeletalMeshComponent::SetSkeletalMesh()
- UDebugSkelMeshComponent::SetSkeletalMesh()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SkeletalMeshComponent.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. |