本节将向你展示如何在 Unity 上,将 6Labs SDK 集成到你的 iOS 和 Android 应用中。
6Labs SDK 以 Unity 包文件 SixLabsSDK-1.0.0.unitypackage 的形式提供。将模块添加到 Unity 项目中:
SixLabsSDK-1.0.0.unitypackage。StartCapture() 方法开始录制游戏,如下所示:
SixLabsSDK.Instance.StartCapture(
inGameId: "<optional_player_in_game_id>",
developerPayload: "<optional_developer_payload_here>"
);
以下为 StartCapture() 方法的参考说明。
public void StartCapture(string inGameId = null, string developerPayload = null)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
inGameId |
string |
否 | 游戏内的可选用户标识符。不传则默认为空字符串。 |
developerPayload |
string |
否 | 与会话关联的开发者自定义元数据(可选)。 |
文档版本 1.0