Skip to content

NetworkPrefabsList Is Populating The Same Prefabs Multiple Times #2424

@JayPeet

Description

@JayPeet

Description

When NetworkObject prefabs are imported, they get added to the default NetworkPrefabsList multiple times.
This causes the error 'NetworkPrefab (Player) has a duplicate GlobalObjectIdHash source entry value of: 2824519432!' on entering play mode.

Additionally, sometimes when a prefab is added to the list, it does not save them to the asset.

Reproduce Steps

  1. Make a new project, and setup NGO
  2. Make a player prefab
  3. Reimport the prefab.

Actual Outcome

The prefab is in the DefaultNetworkPrefabs asset twice.

Expected Outcome

The prefab is only in the list once.

Screenshots

image

Environment

  • OS: Windows 10
  • Unity Version: 2022.2.8f1
  • Netcode Version: 86889a3
  • Netcode Commit: 86889a3

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:mediumThis issue has medium priority and may take some time to be resolvedstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions