I modified my script, but the editor doesn`t scan.
For example, I add new public variable in TestScript.cs. But editor didn`t know that.
So, editor run without any changings. Few minute after, editor renewal changings.
I came to the forum to report the same issue. The strange part, when I click on the script file, I see the real code on Inspector. But it doesn’t work in the game.
I guess I could solve it by re-importing the cs file, but that’s a quite ugly solution.
Curious if you are using .NET 4.6? I am and have dependencies on that so it’s hard to switch back to 3.5 to see if it’s a 4.6 specific issue.
Code compilation in general is hosed right now on 2017 with 4.6 enabled. Unity does a bunch of caching and obviously that logic is screwed up. Plus I get frequent access violations when rebuilding from the mono Garbage collector.
I’m betting that bringing in 4.6 caused changes to their compilation flow generally, it would almost have to. That’s the only reason I can think of why 2017 out of the blue started having code caching/compilation issues.