Preload Network Prefab Addressables
@Ufabsther is already working on this.
Since Apr 25, 2024.
Assessment
This issue has not been assessed yet.
Description
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:
- If the loaded prefabs count is 17 or less, then the client late joining or reconnecting is not an issue.
- 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/
- Open scene (05_API Playground Showcasing All Post-Connection Use-Cases).
- Create and Add some prefabs to the addressables .
- Add the prefabs to the Dynamic Prefabs References List in AppController class (The list items should be more than 17).
- Build addressables.
- Run As a Host.
- Click (Load All Prefabs Async)
- 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
- Dominant language
- C#
- Stars
- 2.3k
- Forks
- 461
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 20
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unity-Technologies/com.unity.netcode.gameobjects
-
stat:import type:bug
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
stat:reply-needed type:support
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Unity-Technologies/com.unity.netcode.gameobjects#4095 · 10 comments ·
-
stat:awaiting-triage stat:Investigating type:bug
Unity-Technologies/com.unity.netcode.gameobjects#3912 · 5 comments · 1 assignee ·
-
Tracking type:feature-2.x
Difficulty 5/5 Over a week Newbie friendliness 35/100
Unity-Technologies/com.unity.netcode.gameobjects#3870 · 5 comments ·
-
Tracking type:feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Unity-Technologies/com.unity.netcode.gameobjects#3830 · 7 comments ·
All issues in Unity-Technologies/com.unity.netcode.gameobjects
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·