32 lines
861 B
C++
32 lines
861 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Modules/ModuleManager.h"
|
|
|
|
#define UE_API INTERCHANGEDNA_API
|
|
|
|
class IDNAReader;
|
|
|
|
|
|
class FInterchangeDnaModule : public IModuleInterface
|
|
{
|
|
public:
|
|
|
|
/** IModuleInterface implementation */
|
|
UE_API virtual void StartupModule() override;
|
|
UE_API virtual void ShutdownModule() override;
|
|
|
|
static UE_API FInterchangeDnaModule& GetModule();
|
|
|
|
/** Set DNA asset user data and map joints for skeletal mesh */
|
|
UE_API void SetSkelMeshDNAData(TNotNull<class USkeletalMesh*> InSkelMesh, TSharedPtr<IDNAReader> InDNAReader);
|
|
|
|
/** DNAInterchangeModule implementation */
|
|
UE_API class USkeletalMesh* ImportSync(const FString& InNewRigAssetName, const FString& InNewRigPath, TSharedPtr<IDNAReader> InDNAReader, TWeakObjectPtr<class USkeleton> InSkeleton);
|
|
|
|
};
|
|
|
|
#undef UE_API
|