Version: 2023.2
Method group is Obsolete

Social

class in UnityEngine

切换到手册
Obsolete

描述

对 Social API 的一般访问。

Social.Active 可用于以特定的社交平台实现为目标,但默认情况下,在 iOS 上使用 GameCenter。其他所有 平台均默认为可用于测试的本地实现。 有关概述,请参阅 Social API Reference Manual

Social 类应始终用作入口点。它包含 用于访问当前活动实现的 helper 函数,并且始终 使用其他 Social API 类的接口。这样更易于使用 已通过此实现扩展到通用 API 之外的接口的版本。

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


另请参阅:SocialPlatforms.GameCenter.GameCenterPlatform。