I’ve just upgraded to Unity 2017.1 (and the new version of .net) and am trying to get my project working but I’ve run into a very odd issue:
When I try and open my project in unity the I get the “Compiling Scripts” message but unity hangs there, using lots of processor. Digging into the unity editor log I found it was stalled at:
After a lot of poking of the class I found the line causing me an issue is:
private readonly SyncModelValueList _syncModelValues = new SyncModelValueList();
If I comment out this line then I can open the project, then uncomment it and it will cause the editor to hang as it tries to compile it.
This is referencing:
class SyncModelValueList : SyncListStruct<SyncModelValue> { }
SyncModelValue is a struct containing two strings and a byte (as well as a few functions to use the data).
I
have tried just about everything I can think of (examples include, changing visibility of variable and referenced classes, removing readonly from variable, initializing in the constructor, changing the name of the classes, changing the name of the variable, moving declarations around inside the cs files).
Anyone got an idea what could be happening?