- Home /
Unity not compiling script changes
Tools Being Used:
Unity 2020.3.27f1
Unity Hub 3.0.1
Visual Studio 2019 16.11.10
Would be nice if someone can help me resolve this issue, can provide more info as per request.
I don't think looking at the script in the inspector is a good test for whether your code is being compiled. The inspector just shows you what's in the file rather than what's been compiled.
Sanity check : are you 100% sure you're editing the same file that's in the project and not using a copy?
Do you have any compiler errors showing up in the console? (hit clear to show just the compiler errors)
Answer by Whitewalkergp · Mar 04 at 01:21 PM
Hey! try moving the script to another folder.
There's actually no need to move it, it can be reimported by right clicking and then select Reimport from the context menu. This action will force Unity to reload the refresh the assets and recompile.
Answer by Monsoonexe · Mar 08 at 04:20 AM
Make sure there are no other errors in the Console that would prevent Unity from importing/refreshing assets.