Skip to content

UserInfo

Jakub Hubacek edited this page Oct 1, 2025 · 4 revisions

UserInfo Subsystem

Location: godot_epic_extension/src/UserInfo

Overview

The UserInfo subsystem handles querying and caching user profile information (display name, nickname, locale, country, etc.) for EOS users. Other subsystems (Friends, Achievements) rely on this cache to present friendly names and user details.


Supported Functions

Function Description
QueryUserInfo(local_user_id, target_user_id) Initiates EOS user info query and caches result
GetCachedUserInfo(local_user_id, target_user_id) Returns cached dictionary or empty dict if not present
GetUserDisplayName(local_user_id, target_user_id) Convenience method that returns display name or nickname fallback
IsUserInfoCached(local_user_id, target_user_id) Returns true if cached
ClearCache() Clears internal cache

Notes

  • Subsystem Integration: Used by FriendsSubsystem to provide friendly display names. When the cache is missing, callers must trigger QueryUserInfo explicitly

EOS SDK Coverage

Mapping of EOS_UserInfo_ SDK functions* to implementation status:

EOS Function Status Notes
EOS_UserInfo_QueryUserInfo ✅ Yes Called in QueryUserInfo() to request a user's info
EOS_UserInfo_CopyUserInfo ✅ Yes Used in copy_user_info_to_dictionary() to read cached user info
EOS_UserInfo_Release ✅ Yes Called after copying EOS_UserInfo to release SDK memory
EOS_Platform_GetUserInfoInterface ✅ Yes Platform is used to obtain the UserInfo interface

Clone this wiki locally