Version: 2018.1

Social

class in UnityEngine

Switch to Manual

Description

Универсальный доступ к социальному 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.

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 beyond the generic API by the implementation.

There are various 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.

Static Variables

ActiveThis is the currently active social platform.
localUserЛокальный пользователь (возможно незалогиненный).

Static Functions

CreateAchievementСоздать экземпляр IAchievement.
CreateLeaderboardСоздать экземпляр ILeaderboard.
LoadAchievementDescriptionsЗагружает описания достижений, связанных с этим приложением.
LoadAchievementsЗагрузить достижения, которые залогиненный пользователь уже получил или в которых продвинулся.
LoadScoresЗагрузить заданное по умолчанию число рекордов из определенной таблицы лидеров.
LoadUsersЗагрузить профили пользователей, связанных с заданным массивом пользовательских идентификаторов (ID).
ReportProgressСообщает о достигнутом прогрессе в получении достижения.
ReportScoreОтправить счет в определенную таблицу лидеров.
ShowAchievementsUIПоказать системный интерфейс игровых достижений.
ShowLeaderboardUIПоказать системный интерфейс игровых таблиц лидеров.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961