![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Inheritance diagram for FScreenSaverInhibitor:Public Member Functions | |
| FScreenSaverInhibitor () | |
Public Member Functions inherited from FRunnable | |
| virtual void | Exit () |
| virtual class FSingleThreadRunnable * | GetSingleThreadInterface () |
| virtual | ~FRunnable () |
Protected Member Functions | |
| bool | Init () override |
| void | Stop () override |
| uint32 | Run () override |
Protected Attributes | |
| std::atomic< bool > | bEnabled { true } |
Helper class inhibiting screen saver by e.g. moving the mouse by 0 pixels every 50 seconds.
|
inline |
Default constructor.
Prevents screensaver from kicking in by calling FPlatformMisc::PreventScreenSaver every 50 seconds.
Implements FRunnable.