Unity-Technologies / Unity-Technologies/com.unity.netcode.gameobjects
Closing the game on Android doesn't properly disconnect the client
未关闭
还没有人认领这个 Issue。
stat:awaiting-response
stat:imported
type:bug
- 主要语言
- C#
- 星标
- 2.3k
- 派生
- 461
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 20
描述
Description
On Android, when quitting the app, the server and other players don't get notified. Eventually it will time out due to heartbeats, but that is not ideal. When quitting the game on other platforms, such as Windows, it correctly notifies the server, and the player prefab gets destroyed.
Environment
- OS: Android
- Unity Version: 6000.0.25f1
- Netcode Version: 2.1.1
Additional Context
Specifically tested on:
- Samsung galaxy J5 2017
- Meta quest 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定源文件或测试。请在 Android 上重现退出游戏的情况,然后将观察到的断开连接行为与 Windows 进行比较;跟踪 Android 应用退出生命周期以及现有的客户端断开连接路径。完成的标准是服务器和其他玩家能够及时收到通知,并且 player prefab 会被销毁,而不是等待 heartbeat timeout。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, csharp, unity
- 领域
- game-dev, mobile, networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100