Skip to content

ConnectionApproval spawn by prefabhash unusable #1338

@LukeStampfli

Description

@LukeStampfli

Describe the bug
The ConnectionApproval callback allows to pass back a prefab hash to spawn a specific prefab as the player object for the connection player. This is no longer possible by code since prefabs don't have a prefabHash anymore and GlobalObjectId is internal.

To Reproduce
Steps to reproduce the behavior:

  1. Override the connection approval callback in the NetworkManager and try spawning a different player object with it.

Actual outcome
It's not possible to do.

Expected outcome
It should work or be removed

Environment (please complete the following information):

  • OS: Windows 10
  • Unity Version: 2020.3.12f1
  • Netcode Version: 1.0.0-pre.2

Metadata

Metadata

Labels

priority:lowThis issue has low priority and will take some time to be resolvedstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions