2020-08-25 06:31:46 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "LevelInstanceEditorSettings.h"
|
2022-06-17 13:22:13 -04:00
|
|
|
#include "LevelInstance/LevelInstanceActor.h"
|
2020-08-25 06:31:46 -04:00
|
|
|
|
|
|
|
|
ULevelInstanceEditorSettings::ULevelInstanceEditorSettings()
|
|
|
|
|
{
|
2022-06-17 13:22:13 -04:00
|
|
|
LevelInstanceClassName = ALevelInstance::StaticClass()->GetPathName();
|
2023-06-12 07:30:42 -04:00
|
|
|
bEnableStreaming = false;
|
2023-11-16 13:35:30 -05:00
|
|
|
bIsEditInPlaceStreamingEnabled = false;
|
2020-08-25 06:31:46 -04:00
|
|
|
}
|
2022-06-13 18:38:57 -04:00
|
|
|
|
|
|
|
|
ULevelInstanceEditorPerProjectUserSettings::ULevelInstanceEditorPerProjectUserSettings()
|
|
|
|
|
{
|
|
|
|
|
bAlwaysShowDialog = true;
|
|
|
|
|
PivotType = ELevelInstancePivotType::CenterMinZ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ULevelInstanceEditorPerProjectUserSettings::UpdateFrom(const FNewLevelInstanceParams& Params)
|
|
|
|
|
{
|
|
|
|
|
ULevelInstanceEditorPerProjectUserSettings* UserSettings = GetMutableDefault<ULevelInstanceEditorPerProjectUserSettings>();
|
|
|
|
|
|
|
|
|
|
if (Params.PivotType != UserSettings->PivotType || Params.bAlwaysShowDialog != UserSettings->bAlwaysShowDialog)
|
|
|
|
|
{
|
|
|
|
|
UserSettings->bAlwaysShowDialog = Params.bAlwaysShowDialog;
|
|
|
|
|
UserSettings->PivotType = Params.PivotType;
|
|
|
|
|
UserSettings->SaveConfig();
|
|
|
|
|
}
|
|
|
|
|
}
|