Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkinnedMeshComponent
Description
Change the SkinnedAsset that is rendered for this Component. Will re-initialize the animation tree etc.
Derived Overrides
| Name | SetSkinnedAssetAndUpdate |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkinnedMeshComponent.h |
| Include Path | #include "Components/SkinnedMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/SkinnedMeshComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Components|SkinnedMesh")
virtual void SetSkinnedAssetAndUpdate
(
class USkinnedAsset * NewMesh,
bool bReinitPose
)
Parameters
| Name | Remarks |
|---|---|
| NewMesh | New mesh to set for this component |
| bReinitPose | Whether we should keep current pose or reinitialize. |