Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeletalMeshComponent
Description
Set the new asset to render and update this component (this function is identical to SetSkeletalMesh). The USkinnedAsset pointer is first cast to a USkeletalMesh, therefore this function will only set assets of type USkeletalMesh.
Virtual Inheritance
- USkinnedMeshComponent::SetSkinnedAssetAndUpdate → USkeletalMeshComponent::SetSkinnedAssetAndUpdate
| Name | SetSkinnedAssetAndUpdate |
| 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 SetSkinnedAssetAndUpdate
(
class USkinnedAsset * InSkinnedAsset,
bool bReinitPose
)
Parameters
| Name | Remarks |
|---|---|
| InSkinnedAsset | The new asset. |
| bReinitPose | Whether to re-initialize the animation. |