Registering Models
Overview
Example Code
#pragma once
#include "CoreMinimal.h"
#include "UInitializer.generated.h"
UCLASS()
class UInitializer : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category = "MetaForge")
static void Initialize() {
#if WITH_EDITOR //this is editor specific stuff
FMetaForgeEditorModule* MyModule = FMetaForgeEditorModule::GetModule();
MyModule->RegisterModule<UMyModelObject, UMyModelManager>("MyModel");
#endif
}
};Summary
Last updated