A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
PixoCore.cpp
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#include "PixoCore.h"
4#include "PixoCoreSettings.h"
5
6#if WITH_EDITOR
7#include "ISettingsModule.h"
8#include "ISettingsSection.h"
9#endif
10
11#define LOCTEXT_NAMESPACE "FPixoCoreModule"
12
14{
15 // This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
16#if WITH_EDITOR
17 ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>(FName("Settings"));
18 if (SettingsModule != nullptr)
19 {
20 ISettingsSectionPtr SettingsSection = SettingsModule->RegisterSettings("Project", "Plugins", "PixoCore",
21 LOCTEXT("PixoCoreSettingsName", "Pixo Core Settings"),
22 LOCTEXT("PixoCoreSettingsDescription", "Configure PixoCore Plugin."),
23 GetMutableDefault<UPixoCoreSettings>()
24 );
25 }
26#endif // WITH_EDITOR
27}
28
30{
31 // This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
32 // we call this function before unloading the module.
33#if WITH_EDITOR
34 ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings");
35 if (SettingsModule != nullptr)
36 {
37 SettingsModule->UnregisterSettings("Project", "Plugins", "PixoCore");
38 }
39#endif
40}
41
42#undef LOCTEXT_NAMESPACE
43
IMPLEMENT_MODULE(FOpenXRExpansionEditorModule, OpenXRExpansionEditor)
virtual void ShutdownModule() override
Definition PixoCore.cpp:29
virtual void StartupModule() override
Definition PixoCore.cpp:13