From 809f46940454cd5f403ae94997e336b1841b760b Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 10 Aug 2026 14:58:18 +0200 Subject: [PATCH] Add `GetUserAvarar` to Online Platform interface --- Source/Engine/Online/IOnlinePlatform.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Engine/Online/IOnlinePlatform.h b/Source/Engine/Online/IOnlinePlatform.h index 8cfcfa007..708bc9452 100644 --- a/Source/Engine/Online/IOnlinePlatform.h +++ b/Source/Engine/Online/IOnlinePlatform.h @@ -7,6 +7,8 @@ #include "Engine/Core/Types/String.h" #include "Engine/Core/Types/DateTime.h" +class Texture; + /// /// Online platform user presence common states. /// @@ -257,6 +259,15 @@ public: /// True if failed, otherwise false. API_FUNCTION() virtual bool GetUser(API_PARAM(Out) OnlineUser& user, User* localUser = nullptr) = 0; + /// + /// Gets the player avatar image. + /// + /// Caller has to destroy the returned virtual texture. + /// The player to get avatar for. + /// The loaded avatar texture, null if cannot get it. Caller has to destroy the returned virtual texture once unused. + /// True if failed, otherwise false. + API_FUNCTION() virtual bool GetUserAvarar(const OnlineUser& user, API_PARAM(Out) Texture*& avatar) = 0; + /// /// Gets the list of friends of the user from the online platform. ///