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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Add comment