23 lines
648 B
C++
23 lines
648 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "PhysicsAssetDataflowContent.h"
|
|
#include "Engine/SkeletalMesh.h"
|
|
#include "PhysicsEngine/PhysicsAsset.h"
|
|
|
|
void UPhysicsAssetDataflowContent::SetActorProperties(TObjectPtr<AActor>& PreviewActor) const
|
|
{
|
|
Super::SetActorProperties(PreviewActor);
|
|
OverrideActorProperty(PreviewActor, SkelMesh, TEXT("PreviewMesh"));
|
|
OverrideActorProperty(PreviewActor, PhysAsset, TEXT("PhysicsAsset"));
|
|
}
|
|
|
|
void UPhysicsAssetDataflowContent::SetSkeletalMesh(USkeletalMesh* InMesh)
|
|
{
|
|
SkelMesh = InMesh;
|
|
}
|
|
|
|
void UPhysicsAssetDataflowContent::SetPhysicsAsset(UPhysicsAsset* InAsset)
|
|
{
|
|
PhysAsset = InAsset;
|
|
}
|