Search Issue Tracker
Fixed in 2017.3.0f3
Votes
0
Found in
2017.1.0p2
Issue ID
942006
Regression
Yes
Stuck on compiling when class inherits a NetworkBehaviour class
Steps to reproduce:
1. Open user attached project
2. Open ExtendsNetworkBehaviourClass.cs script
3. Uncomment.the line SyncListBool bob = new SyncListBool();
4. Save the script
5. Switch back to Unity and notice it freezing in the middle of compilation
Expected result: the script should compile
Reproduced in: 2017.3.0a4, 2017.2.0b7, 2017.1.0a5
Not reproduced in: 2017.1.0a4, 5.6.3f1
Regression since: 2017.1.0a5
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Bailywick
Oct 09, 2017 12:57
For anyone else encountering this:
This affects 2017.1.1f1
It occurs for any kind of sync list as far as I can tell (SyncListBool SyncListInt, SyncListStruct etc).
It only occurs if the class is not directly descended from UnityNetworkBehaviour.
e.g.
class CustomBehaviour : NetworkBehaviour
{
private SyncListBool syncList; //this will work
}
class HangBehaviour: CustomBehaviour
{
private SyncListBool hangList; //this line will cause the hang
}
I've worked around it locally by moving the SyncList declarations into base class and then only setting them up the classes that use them - not ideal but it works till a fix is released.