Search Issue Tracker

Fixed in 5.2.0

Votes

0

Found in

5.1.0f2

Issue ID

701050

Regression

No

[NetworkBehaviourInspector] Inspector is unable to display SyncList

Inspector Functionality

-

Steps to reproduce:

1. Open attached project "SyncListBug"
2. Open scene "SyncListBug"
3. Open "TestSyncList.cs" script
4. Notice public bool MP is declared before SyncListString
5. Notice that SyncListString is declared as public.
6. Get back to Unity and in "Hierarchy" select "Directional Light" which has "TestSyncList.cs" attached.
7. Notice IndexOutOfRange exception in console.

Note: this problem occurs with any type of SyncList (SyncListUInt, SyncListString, etc.). This bug doesn't occur if variable (in this case "MP") is declared after SyncList or SyncList is declared as protected or private.

Comments (1)

  1. robinouu01

    Nov 06, 2016 12:15

    Yes, I can reproduce it. I can't edit the list in the inspector.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.