DefaultGameTarget
DefaultGameTarget
#Overview
name: DefaultGameTarget
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 1
C++ source file.
#Summary
#Setting Variables
#References In INI files
Location: <Workspace>/Projects/Lyra/Config/DefaultEngine.ini:33, section: [/Script/BuildSettings.BuildSettings]
- INI Section:
/Script/BuildSettings.BuildSettings
- Raw value:
LyraGame
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Developer/DeveloperToolSettings/Private/ProjectPackagingSettings.cpp:226
Scope (from outer to inner):
file
function const FTargetInfo* FindBestTargetInfo
Source code excerpt:
const TArray<FTargetInfo>& TargetsRef = bUseEngineTargets ? DesktopPlatform->GetTargetsForProject(FString()) : DesktopPlatform->GetTargetsForCurrentProject();
const FTargetInfo* DefaultGameTarget = nullptr;
const FTargetInfo* DefaultClientTarget = nullptr;
for (const FTargetInfo& Target : TargetsRef)
{
if (Target.Name == TargetName)
{
return &Target;
}
else if (Target.Type == EBuildTargetType::Game && (DefaultGameTarget == nullptr || Target.Name < DefaultGameTarget->Name))
{
DefaultGameTarget = &Target;
}
else if (Target.Type == EBuildTargetType::Client && (DefaultClientTarget == nullptr || Target.Name < DefaultClientTarget->Name))
{
DefaultClientTarget = &Target;
}
}
return (DefaultGameTarget != nullptr) ? DefaultGameTarget : DefaultClientTarget;
}
const FTargetInfo* UProjectPackagingSettings::GetBuildTargetInfo() const
{