Search Issue Tracker
Fixed in 2017.2.0f3
Votes
0
Found in
2017.1.0f3
Issue ID
950361
Regression
Yes
Unity intermitently fails to reload scripts after editing them with Visual Studio (or MonoDevelop) open
How to reproduce: (Not reproducible!)
1. Verify that Visual Studio 2015 or 2017 (or MonoDevelop) is set as your External Script Editor
2. Open ScriptReloadTest scene
3. Use the "Assets/Open C# Project" menu item to open the project in Visual Studio
4. Locate the ScriptReloadTest.cs file in Visual Studio
5. modify the public "m_Test###" integer variable by incrementing the numeric suffix
6. switch back to Unity
7. Observe that Unity recompiles Scripts (spinner appears)
8. Observe that the instance of the ScriptReloadTest MonoBehaviour has changed in the inspector to so that it is displaying the NEW name for the m_Test### member variable
9. repeat steps 5) through 8) many times (usually less than 10 but sometimes as many as a hundred)
10. Observe that at some point Observation 8) fails and that the Unity inspector is displaying the OLD name of the m_Test### variable.
Actual result: When modifying a script Unity will sometimes appear to recompile them (the little spinner appears in the bottom right-hand corner), but when it finishes the assembly isn't actually reloaded and unity continues to run with the old .dll
Regression since 2017.1
https://forum.unity.com/threads/script-changes-dont-compile.486287/
-----------------------------------------
Fixed: 2017.1.1p2, 2017.2.0b11
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Add comment