Search Results for

    账号与好友

    Important

    在使用任何平台功能之前,开发者首先需要初始化 Platform SDK。更多详情,请参考 Platform。

    好友

    用户可以在你的应用程序中看到朋友信息。

    以下 SDK 方法可以从您的客户端应用程序中调用:

    1. YVR.Platform.Friends.GetFriends:检索所有用户的朋友信息。
    2. YVR.Platform.Friends.GetFriendInformation:检索具有账户 ID 的指定朋友的信息。
    Note

    更多信息,请参考 Friends API Documentation。

    账号

    当用户打开你的应用程序,你可以在的应用程序中获得用户的账户信息。

    1. YVR.Platform.Account.GetLoggedInUser:获取已登录用户的账户信息。
    Note

    更多信息,请参考 Account API Documentation。

    示例

    Important

    YVR 系统版本要求:1.2.6 及以上版本

    平台示例也可从 PlayForDreamDevelopers Github获取。

    1. 在 Project 面板下,进入 Assets > Samples > Account/Friends 文件夹下查看示例。
      ProjectFolder

    2. 构建并安装示例项目在 YVR 设备上。
      AccountSample

      FriendsSample

    In This Article