Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/USkeletalMeshComponent
Description
Override the Physics Asset of the mesh. It uses SkeletalMesh.PhysicsAsset, but if you'd like to override use this function
Virtual Inheritance
- USkinnedMeshComponent::SetPhysicsAsset → USkeletalMeshComponent::SetPhysicsAsset
| Name | SetPhysicsAsset |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h |
| Include Path | #include "Components/SkeletalMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/SkeletalMeshComponentPhysics.cpp |
virtual void SetPhysicsAsset
(
class UPhysicsAsset * NewPhysicsAsset,
bool bForceReInit
)
Parameters
| Name | Remarks |
|---|---|
| NewPhysicsAsset | New PhysicsAsset |
| bForceReInit | Force reinitialize |