r.DebugActionZone.ActionRatio
r.DebugActionZone.ActionRatio
#Overview
name: r.DebugActionZone.ActionRatio
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
The action zone ratio that will be returned by FDisplayMetrics::GetDisplayMetrics on platforms that don\'t have a defined safe zone (0..1)\n default: 1.0
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Runtime/ApplicationCore/Private/GenericPlatform/GenericApplication.cpp:98
Scope (from outer to inner):
file
function FSafeZoneConsoleVariables
Source code excerpt:
TEXT(" default: 1.0"))
, DebugActionZoneRatioCVar(
TEXT("r.DebugActionZone.ActionRatio"),
GDebugActionZoneRatio,
TEXT("The action zone ratio that will be returned by FDisplayMetrics::GetDisplayMetrics on platforms that don't have a defined safe zone (0..1)\n")
TEXT(" default: 1.0"))
{
DebugSafeZoneRatioCVar->SetOnChangedCallback(FConsoleVariableDelegate::CreateRaw(this, &FSafeZoneConsoleVariables::OnDebugSafeZoneChanged));
DebugActionZoneRatioCVar->SetOnChangedCallback(FConsoleVariableDelegate::CreateRaw(this, &FSafeZoneConsoleVariables::OnDebugSafeZoneChanged));
#Loc: <Workspace>/Engine/Source/Runtime/UMG/Public/Components/SafeZone.h:17
Scope: file
Source code excerpt:
* Useful testing console commands to help, simulate the safe zone on PC,
* r.DebugSafeZone.TitleRatio 0.96
* r.DebugActionZone.ActionRatio 0.96
*
* To enable a red band to visualize the safe zone, use this console command,
* r.DebugSafeZone.Mode controls the debug visualization overlay (0..2, default 0).
* 0: Do not display the safe zone overlay.
* 1: Display the overlay for the title safe zone.
* 2: Display the overlay for the action safe zone.
*/
UCLASS(MinimalAPI)
class USafeZone : public UContentWidget
{
GENERATED_BODY()
public:
UMG_API USafeZone();
#if WITH_EDITOR
UMG_API virtual const FText GetPaletteCategory() override;
UMG_API virtual void OnDesignerChanged(const FDesignerChangedEventArgs& EventArgs) override;
#endif
UMG_API virtual void OnSlotAdded( UPanelSlot* Slot ) override;