I've been having this problem since months and only happens when I have GameSparks sdk imported in a project, whenever I change a script and Unity starts recompiling while I'm playing the Unity freezes, I noticed that if I stop playing before few seconds nothing happens but if I wait too long then Unity freezes so I have close it an open it again.
Can you let us know what versions of the SDK you were seeing this behavior in ? Also if you could let us know which version of the Unity Editor you were using at this time that would help. We'll look into this for you.
Im using latest version of GS SDK and latest Unity 5.5p3 but Ive seen this since previous versions, cant remember exactly.
We are also experiencing this issue with Unity 5.5.0f3 and GameSparks SDK V22.214.171.124.
1. Open project that uses GameSparks in Unity Editor
2. Click the "Play" button to start playing the game in the editor
3. Open a script in an external editor (i.e. MonoDevelop or Visual Studio)
4. Edit and save the script
5. Return to Unity editor. Unity recompiles the project, at which point the editor freezes and must be closed from Task Manager
Tested on Windows 10
Would you be able to confirm that this error doesn't appear if you repeat this process with a fresh unity project.
I thought this was fixed with the last SDK but seems to be worst now, I've to close my unity more than 5 times in 1 hour because it hangs up on recompile.
Could you test this in a Unity project without the GameSparks SDK and see if the behavior persists?
Best Regards, Patrick.
It's also happening with me, empty project with gamesparks 126.96.36.199 on unity 5.5.1f1 keeps freezing
Can you try this in an empty project with the Unity version 5.5.3 or greater please ? Let us know the results of that test when you try it. If you're still seeing an issue please log a ticket.
As stated on the other topic,for another user as well, the gamesparks 5.5.3 with unity 5.5.1 freezes as well
This is temporary solution.
Remove or comment out [InitializeOnLoadMethod] above GameSparksSettingsEditor::FixSDK() function.
I'm facing this problem also, Kynugup , thanks for your suggested solution, but I tried it and didn't work
I'm using Unity 5.5.1f.
As I said above, comment out "[InitializeOnLoadMethod]" then It work correctly.
Are you sure that problem caused by GameSparks?
Yes, I'm using those versions too, I have commented the line but unity still stops working when I edit any script during play.
I have tried that in another project that doesn't contain GameSparks plugin, and the problem didn't occur, so It's probably because of GameSparks