Unity - A计划(永久有效期) 扫二维码继续学习 二维码时效为半小时

(197评价)
价格: 4431.00元
Unet经常出现的Bug,不知怎么解决
小白cs发起了话题2018-07-25
1
回复
1269
浏览

IndexOutOfRangeException: NetworkReader:ReadByte out of range:NetBuf sz:9 pos:9
UnityEngine.Networking.NetBuffer.ReadByte () (at C:/buildslave/unity/build/Extensions/Networking/Runtime/NetworkBuffer.cs:35)
UnityEngine.Networking.NetworkReader.ReadUInt32 () (at C:/buildslave/unity/build/Extensions/Networking/Runtime/NetworkReader.cs:200)
UnityEngine.Networking.NetworkReader.ReadSingle () (at C:/buildslave/unity/build/Extensions/Networking/Runtime/NetworkReader.cs:278)
UnityEngine.Networking.NetworkReader.ReadVector3 () (at C:/buildslave/unity/build/Extensions/Networking/Runtime/NetworkReader.cs:349)
UnityEngine.Networking.NetworkTransform.UnserializeMode3D (UnityEngine.Networking.NetworkReader reader, Boolean initialState) (at C:/buildslave/unity/build/Extensions/Networking/Runtime/NetworkTransform.cs:569)
UnityEngine.Networking.NetworkTransform.OnDeserialize (UnityEngine.Networking.NetworkReader reader, Boolean initialState) (at C:/buildslave/unity/build/Extensions/Networking/Runtime/NetworkTransform.cs:442)

所有回复
  • siki 2018-07-26

    把输错行位置的代码发出来,这个是索引超出范围的异常,可以吧索引输出检查下

    还有-5条回复,点击查看
    你还没有登录,请先登录注册
发表回复
你还没有登录,请先 登录或 注册!