Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkLists not populating on client #2062

Closed
ezoray opened this issue Jul 12, 2022 · 4 comments
Closed

NetworkLists not populating on client #2062

ezoray opened this issue Jul 12, 2022 · 4 comments
Assignees
Labels
stat:imported Issue is tracked internally at Unity type:bug Bug Report

Comments

@ezoray
Copy link

ezoray commented Jul 12, 2022

Description

I have a network object with a network list of networkBehaviourReferences, in pre7 this list was populated on the client but since updating to pre10 it's not being populated.

Reproduce Steps

Connect a client to the server.
Spawn network object containing a list, and populate that list.

Actual Outcome

Server's list is populated, client's list is not.

Expected Outcome

Client list should be populated the same as the server.

Environment

  • OS: macOS Big Sur
  • Unity Version: 2021 LTS
  • Netcode Version: 1.0.0-pre.10

Additional Context

I've attached the scripts from a test project to demonstrate the problem. There are NetworkListContainer and NetworkListEntity network objects, the NetworkListContainer contains two network lists, one of networkBehavourReferences (NetworkListEntity's) and one of ints.

To run the attached scripts add StartScene and NetworkListScene to the build.

Test outcomes:
Server spawns objects and populates lists, client connects - objects spawn on client and lists are populated
Client connects, server spawns objects and populates lists - objects spawn on client but lists not populated
Server spawns objects hidden, client connects, show objects to client - objects spawn on client but lists not populated
Client connects, server spawns objects hidden, show objects to client - objects spawn on client but lists not populated
networklist_issue.unitypackage.zip

@ezoray ezoray added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report labels Jul 12, 2022
@ashwinimurt ashwinimurt added stat:import stat:imported Issue is tracked internally at Unity and removed stat:import labels Jul 12, 2022
@ashwinimurt
Copy link
Contributor

Backlog MTT-4076

@jeffreyrainy
Copy link
Contributor

jeffreyrainy commented Jul 15, 2022

Would you be in a position to test a branch before it is released ?

The branch is fix/in-scene-networklist
The commit you are after is 19dbda7

From the description, it looks exactly like what this fix attempts to address.

@ezoray
Copy link
Author

ezoray commented Jul 15, 2022

Hi Jeff, I've tried the fix in the test project and all seems to be working, thanks.

@jeffreyrainy
Copy link
Contributor

Hi, we've merged a PR for this to develop which will go a later release.

@ashwinimurt ashwinimurt removed the stat:awaiting triage Status - Awaiting triage from the Netcode team. label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:imported Issue is tracked internally at Unity type:bug Bug Report
Projects
None yet
Development

No branches or pull requests

3 participants