A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
PixoTutorial.cpp
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#include "PixoTutorial.h"
5
6#if WITH_EDITOR
7#include "ISettingsModule.h"
8#include "ISettingsSection.h"
9#endif
10
11#define LOCTEXT_NAMESPACE "FPixoTutorialModule"
12
14{
15#if WITH_EDITOR
16 ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>(FName("Settings"));
17 if (SettingsModule != nullptr)
18 {
19 ISettingsSectionPtr SettingsSection = SettingsModule->RegisterSettings("Project", "Plugins", "Pixo Tutorial",
20 LOCTEXT("PixoTutorialSettingsName", "Pixo Tutorial Settings"),
21 LOCTEXT("PixoTutorialSettingsDescription", "Configure Pixo Tutorial"),
22 GetMutableDefault<UPixoTutorialSettings>()
23 );
24 }
25#endif // WITH_EDITOR
26}
27
29{
30#if WITH_EDITOR
31 ISettingsModule* SettingsModule = FModuleManager::GetModulePtr<ISettingsModule>("Settings");
32 if (SettingsModule != nullptr)
33 {
34 SettingsModule->UnregisterSettings("Project", "Plugins", "Pixo Tutorial");
35 }
36#endif
37}
38
39#undef LOCTEXT_NAMESPACE
40
IMPLEMENT_MODULE(FOpenXRExpansionEditorModule, OpenXRExpansionEditor)
virtual void ShutdownModule() override
virtual void StartupModule() override