Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
ReturnLegend's avatar
ReturnLegend
Honored Guest
2 years ago

Bug report: Platform SDK can't get other user‘s profile

Hi,I try to use GetLoggedInUser() to get my own personal information, and everything works fine. But how to get other people's personal information, including name, avatar?

I tried to use Users.Get(UInt64 userID), but it didn't work. Isn't this interface used for this? Is there any other interface to get other players' information instead of forwarding it through the server?

public static Request<Models.User> Get(UInt64 userID)
{
if (Core.IsInitialized())
{
return new Request<Models.User>(CAPI.ovr_User_Get(userID));
}

Debug.LogError(Oculus.Platform.Core.PlatformUninitializedError);
return null;
}