Unity-Technologies / Unity-Technologies/com.unity.netcode.gameobjects

Closing the game on Android doesn't properly disconnect the client

未關閉
#3,119 4 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。