收藏
回答

unity sdk gameservermanager相关代码严重报错!

游戏引擎 AppID 操作系统 微信版本 基础库版本
unity wx81979ba2e74dbc29 Android 6.5.3 2.0.0

以下是unity代码

var server = WX.GetGameServerManager();

server.login();

server.StartMatch(new StartMatchOption

        {

            matchId = matchID,

            success = (result) =>

            {

                Debug.Log("StartMatch succ");

            },

            fail = result =>

            {

                Debug.Log("StartMatch fail:" + result.errMsg);

            }

        });


以上代码会报错:JsonException: Max allowed object depth reached while trying to export from type System.Guid

  at LitJson.JsonMapper.WriteValue

如果不设置success和fail参数则不会报错,不止是StartMatch方法,其它方法也同样会报错

代码分支:

https://gitee.com/wechat-minigame/minigame-tuanjie-transform-sdk.git#feat-gameservermanager

回答关注问题邀请回答
收藏
登录 后发表内容