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

Preload Network Prefab Addressables

未關閉
#2,818 8 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@Ufabsther 已經在處理了。

開始於 2024年4月25日。

priority:medium stat:Investigating type:bug
主要語言
C#
星號
2.3k
分支
461
平均合併
3 天 16 小時
30 天內合併 PR
20

描述

Description

I am trying to Preload Network prefabs from addressables without spawning, the sequence of the process is that I run the server, invoke preload, then run the client.

The issue is that the client connection is denied immediately. It only happens if the server invokes a preload for more than 17 prefabs, then:

  • The client tries to connect after server's invoked preloading.
  • The client disconnects then reconnect.

It works only in two cases:

  1. If the loaded prefabs count is 17 or less, then the client late joining or reconnecting is not an issue.
  2. If the loaded prefabs count is more than 17, then it works only if the client is connected when the server invokes preloading Rpc.
Reproduce Steps

Iam testing on the (Dynamic prefab sample) project.
https://docs-multiplayer.unity3d.com/netcode/current/learn/bitesize/bitesize-dynamicPrefabs/

  1. Open scene (05_API Playground Showcasing All Post-Connection Use-Cases).
  2. Create and Add some prefabs to the addressables .
  3. Add the prefabs to the Dynamic Prefabs References List in AppController class (The list items should be more than 17).
  4. Build addressables.
  5. Run As a Host.
  6. Click (Load All Prefabs Async)
  7. Now Run the client.
Actual Outcome

The client connection is denied, the disconnects.

Expected Outcome

The client connects and preload all prefabs that the server has loaded.

Environment
  • OS: Windows 11
  • Unity Version: 2022.3.12F1 LTS
  • Netcode Version: 1.6.0

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

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

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