Unity-Technologies / Unity-Technologies/com.unity.netcode.gameobjects
Preload Network Prefab Addressables
@Ufabsther y travaille déjà.
Depuis le 25/4/2024.
- Langage dominant
- C#
- Étoiles
- 2.3k
- Forks
- 461
- Merge moyen
- 3 j 16 h
- PR mergées (30 j)
- 20
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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.