Code not updating when edited in Visual Studio

Hello,

Whenever I change my code in Visual Studio and then save it and go back to unity the code doesn’t update. This is the code:

8162072--1061375--upload_2022-5-27_18-19-53.png

And this is what is displays in Unity:

8162072--1061378--upload_2022-5-27_18-20-54.png

The code is saved and I ran the game but it doesn’t work and it is not updates. The preferences are correct and are shown as follows:

I stopped Unity for a bit because of this issue which I’ve had since I started using it so I haven’t been able to do anything with Unity. Please can you help me.

Thank you.

  • R-ty_dragon1

8162072--1061375--upload_2022-5-27_18-19-53.png

I bet you have two files. Delete one of them.

If it isn’t duplicate files, try created a new one, directly from unity and then edit it.

I usually do that. I made a video here: