You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Runtime: Level Instances that are WP will still get embedded in their parent world grid (independent of the value of bEnableStreaming) - Editor: Level Instances with bEnableStreaming=true will now act as regular World Partitions when loaded on their own. Allowing for big Level Instances to be partially loaded outside of their owning world. - Add Project Setting for default value to assign to new Level Instances #rb jeanfrancois.dube, richard.malo [CL 25926203 by patrick enfedaque in ue5-main branch]
28 lines
961 B
C++
28 lines
961 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "LevelInstanceEditorSettings.h"
|
|
#include "LevelInstance/LevelInstanceActor.h"
|
|
|
|
ULevelInstanceEditorSettings::ULevelInstanceEditorSettings()
|
|
{
|
|
LevelInstanceClassName = ALevelInstance::StaticClass()->GetPathName();
|
|
bEnableStreaming = false;
|
|
}
|
|
|
|
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();
|
|
}
|
|
} |