r.CustomUnsafeZones

r.CustomUnsafeZones

#Overview

name: r.CustomUnsafeZones

The value of this variable can be defined or overridden in .ini config files. 7 .ini config files referencing this setting variable.

This variable is created as a Console Variable (cvar).

It is referenced in 2 C++ source files.

#Summary

#Setting Variables

#References In INI files

Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:391, section: [iPhoneX DeviceProfile]

Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:397, section: [iPhoneXS DeviceProfile]

Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:403, section: [iPhoneXSMax DeviceProfile]

Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:409, section: [iPhoneXR DeviceProfile]

Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:415, section: [iPhone11 DeviceProfile]

Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:421, section: [iPhone11Pro DeviceProfile]

Location: <Workspace>/Engine/Config/BaseDeviceProfiles.ini:427, section: [iPhone11ProMax DeviceProfile]

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/Core/Private/HAL/ConsoleManager.cpp:4202

Scope: file

Source code excerpt:


static TAutoConsoleVariable<FString> CVarCustomUnsafeZones(
	TEXT("r.CustomUnsafeZones"),
	TEXT(""),
	TEXT("Allows you to set custom unsafe zones. Define them based on Portrait (P) or Landscape (L) for a device oriented 'upright'."
		 "Unsafe zones may be either fixed or free, depending on if they move along with the rotation of the device."
		 "Format is (P:fixed[x1, y1][width, height]), semicolon-separated for each custom unsafe zone. +Values add from 0, -Values subtract from Height or Width"),
	ECVF_Default);

#Loc: <Workspace>/Engine/Source/Editor/UnrealEd/Private/Settings/SettingsClasses.cpp:677

Scope (from outer to inner):

file
function     FMargin ULevelEditorPlaySettings::CalculateCustomUnsafeZones

Source code excerpt:

	{
		FString CVarUnsafeZonesString;
		if (DeviceProfile->GetConsolidatedCVarValue(TEXT("r.CustomUnsafeZones"), CVarUnsafeZonesString))
		{
			TArray<FString> UnsafeZones;
			CVarUnsafeZonesString.ParseIntoArray(UnsafeZones, TEXT(";"), true);
			for (FString UnsafeZone : UnsafeZones)
			{
				FString Orientation;