Files
UnrealEngineUWP/Engine/Source/Runtime/IOS/IOSRuntimeSettings/Private/IOSRuntimeSettings.cpp
Peter Sauerbrei 481497e7a3 addition of Bundle Name, Bundle Display Name, Bundle Identifier, and Version to the iOS project settings.
TTP341741
#ue4
#ios

[CL 2227521 by Peter Sauerbrei in Main branch]
2014-07-22 16:43:18 -04:00

30 lines
919 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "IOSRuntimeSettingsPrivatePCH.h"
#include "IOSRuntimeSettings.h"
UIOSRuntimeSettings::UIOSRuntimeSettings(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
bEnableGameCenterSupport = true;
bSupportsPortraitOrientation = true;
BundleDisplayName = TEXT("UE4 Game");
BundleName = TEXT("MyUE4Game");
BundleIdentifier = TEXT("com.YourCompany.GameNameNoSpaces");
VersionInfo = TEXT("1.0.0");
}
#if WITH_EDITOR
void UIOSRuntimeSettings::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
// Ensure that at least one orientation is supported
if (!bSupportsPortraitOrientation && !bSupportsUpsideDownOrientation && !bSupportsLandscapeLeftOrientation && !bSupportsLandscapeRightOrientation)
{
bSupportsPortraitOrientation = true;
}
}
#endif