- Home /
manually refresh scripts in inspector
Hi - my unity software is suddenly not refreshing my script variables when I make changes to them in the external editor. Is there any way to manually refresh this?
Answer by pheash · Jun 11, 2012 at 10:50 PM
you can hit ctrl+R or go to Assets>Refresh, this should manually refresh all the assets in your project. if your external editor is set as the default editor though it should work automatically. have you tried closing unity and reopening it? To change the external script editor go to Edit>Preferences and make sure it is set to whatever one you are using.
Anyway to do this in the script? like have it refresh once after something has happened. I have a screen shot script that takes a screeny and I have to refresh manually to see it update. Would it be possible to have a line that refreshes unity right after the screeny is taken? Thanks