You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
44 lines
918 B
C++
44 lines
918 B
C++
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
||
|
|
|
||
|
|
#include "MeshEditingRuntimeModule.h"
|
||
|
|
#include "IMeshEditingRuntimeModule.h"
|
||
|
|
#include "StaticMeshEditableMeshFormat.h"
|
||
|
|
|
||
|
|
DEFINE_LOG_CATEGORY( LogMeshEditingRuntime );
|
||
|
|
|
||
|
|
|
||
|
|
class FMeshEditingRuntimeModule : public IMeshEditingRuntimeModule
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
|
||
|
|
FMeshEditingRuntimeModule()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
virtual void StartupModule() override;
|
||
|
|
|
||
|
|
virtual void ShutdownModule() override;
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
/** Static mesh editing */
|
||
|
|
FStaticMeshEditableMeshFormat StaticMeshEditableMeshFormat;
|
||
|
|
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
void FMeshEditingRuntimeModule::StartupModule()
|
||
|
|
{
|
||
|
|
IModularFeatures::Get().RegisterModularFeature( "EditableMeshFormat", &StaticMeshEditableMeshFormat );
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
void FMeshEditingRuntimeModule::ShutdownModule()
|
||
|
|
{
|
||
|
|
IModularFeatures::Get().UnregisterModularFeature( "EditableMeshFormat", &StaticMeshEditableMeshFormat );
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
IMPLEMENT_MODULE( FMeshEditingRuntimeModule, MeshEditingRuntime )
|