用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:social:social

Social 社交网络

Namespace: UnityEngine

Description 描述

Generic access to the Social API.

Social.Active can be used to target a specific social platform implementation, but by default GameCenter is used on iOS. All other platforms default to the Local implementation which can be used for testing. See Social API Reference Manual for an overview.

Social.Active 可以用来针对特定的网络交互平台执行,但在默认情况下是ios的GameCenter。所有其他平台在用于测试时是在本地执行。参见 Social API Reference Manual的概述。

The Social class should always be used as an entry point. It contains helper functions for accessing the current active implementation and always uses the interfaces of the other Social API classes. This way it is easier to use versions of the interfaces which have been extended beoynd the generic API by the implementation. There are varoius classes accociated with the Social API and all of these reside in the UnityEngine.SocialPlatforms namespace. You need to import/use this namespace in order to use these classes. See Also: SocialPlatforms.GameCenter.GameCenterPlatform.

Social类应该始终用来作为入口点。它包含用于访问当前激活实现的辅助函数和始终使用其他社交网络API类的接口。这种方式是更容易使用的接口版本,已被扩展超出通用API实现。 社交网络API与很多类有关联,所有相关联的都位于UnityEngine.SocialPlatforms这个命名空间。你需要导入该命名空间才能使用这些类。参见:SocialPlatforms.GameCenter.GameCenterPlatform.

Static Variables 静态变量

ActiveThis is the currently active social platform.
当前活动的社交网络平台。
localUserThe local user (potentially not logged in).
本地用户(可能无法登陆)。

Static Functions 静态函数

CreateAchievementCreate an IAchievement instance.
创建一个IAchievement实例。
CreateLeaderboardCreate an ILeaderboard instance.
创建ILeaderboard实例。
LoadAchievementDescriptionsLoads the achievement descriptions accociated with this application
加载与此应用程序相关联的游戏成绩描述。
LoadAchievementsLoad the achievements the logged in user has already achieved or reported progress on.
加载登陆用户已经取得的游戏成绩或者报告进度。
LoadScoresLoad a default set of scores from the given leaderboard.
从排行榜加载默认设置的分数。
LoadUsersLoad the user profiles accociated with the given array of user IDs.
加载带有用户ID的给定数据用户有关的配置文件。
ReportProgressReports the progress of an achievement.
报告成绩的进度。
ReportScoreReport a score to a specific leaderboard.
报告分数到指定的排行榜。
ShowAchievementsUIShow a default/system view of the games achievements.
显示该游戏成绩的默认或系统视图。
ShowLeaderboardUIShow a default/system view of the games leaderboards.
显示该游戏排行榜的默认或系统视图。
script/unityengine/classes/social/social.txt · 最后更改: 2016/08/02 05:37 (外部编辑)