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
- A bright horizontal line appears in Game view while underwater, when the cloud layer is enabled
- [HDRP] Clear coat materials produce screen-space reflections when the clear coat value is 0 in "Forward Only" Lit Shader Mode
- The alpha blending of transparent objects rendered to a RenderTexture is not rendered correctly in the Game View when in Play mode
- Scrolling on a default ScrollView in a WebGL build is too sensitive when compared to other platform builds and the Editor
- "Fix All" button does not disappear after applying fixes when setting up DXR
Add comment