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

Networking

-

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)

  1. 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.

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.