Closed
Description
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:
- Add a prefab in the network prefab property of NetworkManager and make it the default Player Prefab(make sure this is the last element)
- Click on the + button
- 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
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