用户工具

站点工具


侧边栏

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实例。
LoadAchievementDesc
script/unityengine/classes/social/social.txt · 最后更改: 2016/08/02 05:37 (外部编辑)