UGameViewportClient::CalculateDeadZoneForAllSides

Pixel size of the deadzone for all sides (right/left/top/bottom) based on which local player it is

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/GameViewportClient.h

Include

#include "Engine/GameViewportClient.h"

Source

/Engine/Source/Runtime/Engine/Private/GameViewportClient.cpp

Syntax

bool CalculateDeadZoneForAllSides
(
    ULocalPlayer * LPlayer,
    UCanvas * Canvas,
    float & fTopSafeZone,
    float & fBottomSafeZone,
    float & fLeftSafeZone,
    float & fRightSafeZone,
    bool bUseMaxPercent
)

Remarks

Pixel size of the deadzone for all sides (right/left/top/bottom) based on which local player it is

Returns

true if the safe zone exists