Files
UnrealEngine/Engine/Source/Editor/ClothingSystemEditor/Private/ClothingSystemEditorModule.cpp
2025-05-18 13:04:45 +08:00

31 lines
841 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ClothingSystemEditorModule.h"
#include "ClothingAssetFactory.h"
#include "Features/IModularFeatures.h"
#include "Modules/ModuleManager.h"
#include "UObject/Class.h"
IMPLEMENT_MODULE(FClothingSystemEditorModule, ClothingSystemEditor);
FClothingSystemEditorModule::FClothingSystemEditorModule()
{
}
void FClothingSystemEditorModule::StartupModule()
{
IModularFeatures::Get().RegisterModularFeature(IClothingAssetFactoryProvider::FeatureName, this);
}
void FClothingSystemEditorModule::ShutdownModule()
{
IModularFeatures::Get().UnregisterModularFeature(IClothingAssetFactoryProvider::FeatureName, this);
}
UClothingAssetFactoryBase* FClothingSystemEditorModule::GetFactory()
{
return UClothingAssetFactory::StaticClass()->GetDefaultObject<UClothingAssetFactoryBase>();
}