Merge ScreenUtilities into Platform for simplicity and make it Editor-only

#2800
This commit is contained in:
Wojtek Figat
2026-02-11 17:59:11 +01:00
parent 273b110db4
commit 019a9f6089
18 changed files with 264 additions and 417 deletions

View File

@@ -797,6 +797,26 @@ void PlatformBase::CollectCrashData(const String& crashDataFolder, void* context
{
}
#if USE_EDITOR
#include "Engine/Core/Math/Color32.h"
Delegate<Color32> PlatformBase::PickScreenColorDone;
Color32 PlatformBase::GetScreenColorAt(const Float2& pos)
{
// No supported
return Color32::Transparent;
}
void PlatformBase::PickScreenColor()
{
// Just return transparent color when not implemented/supported
PickScreenColorDone(Color32::Transparent);
}
#endif
const Char* ToString(PlatformType type)
{
switch (type)