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
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Add comment