I removed a variable from my script but it still shows up in the inspector,I removed a public int from my script yet it stills shows up in the inspector when looking at the script component

I already removed it yet it still shows up is this a bug?,yet it stills shows up in the inspector when looking at the script component.

I am sure its not there anymore and even if I try to change the int it doesn’t affect the inspector. This has to be a bug.

If this happens you probably have errors in the code :slight_smile:

Components do not refresh if there is a compiler error. Save the script, go to unity, wait for it to refresh. If the problem persists, check the console to see if any errors appear there.