Files
UnrealEngine/Engine/Source/Developer/Datasmith/DatasmithExporterUI/Private/DatasmithExporterUIModule.cpp
2025-05-18 13:04:45 +08:00

34 lines
675 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "DatasmithExporterUIModule.h"
#include "DatasmithExporterManager.h"
#include "DirectLinkUI.h"
#include <atomic>
std::atomic<class FDatasmithExporterUIModule*> GExporterUIModule(nullptr);
IDatasmithExporterUIModule* IDatasmithExporterUIModule::Get()
{
return GExporterUIModule;
}
void FDatasmithExporterUIModule::StartupModule()
{
GExporterUIModule = this;
#if IS_PROGRAM
if ( FDatasmithExporterManager::WasInitializedWithMessaging() )
{
DirectLinkUI = MakeUnique<FDirectLinkUI>();
}
#endif
}
IDirectLinkUI* FDatasmithExporterUIModule::GetDirectLinkExporterUI() const
{
return DirectLinkUI.Get();
}