Skip to content

Multiple Default player Prefabs #664

Closed
@RuchirRajOld

Description

@RuchirRajOld

Describe the bug
Due to how the list drawer Functions in unity, i.e, when we click the + button to add a new item to the list/array, the previous items get copied by default.

To Reproduce
Steps to reproduce the behavior:

  1. Add a prefab in the network prefab property of NetworkManager and make it the default Player Prefab(make sure this is the last element)
  2. Click on the + button
  3. You will see the next element is also selected as a default player Prefab

Expected behavior
It should just reset the toggle to false when adding a new prefab to the list

Screenshots
image

Environment (please complete the following information):

  • Unity Version: 2021.2a9
  • MLAPI Version: 0.1.0(release version)

Additional context
This seems to be a problem with how unity handles this situation in general and not limited to MLAPI

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions