- Home /
Refreshing Editor Scripts
I have various editor scripts that do various things, and one script in particular is giving me a bit of trouble. All it does is draw a gizmo for me, but I've changed the icon of the gizmo itself, and Unity keeps drawing the old gizmo, not the new one.
How can I "refresh" my editor scripts, forcing them to re-compile, or reload any related resources?
Edit: To be more specific, the resource (icon) I'm using as my gizmo is somehow cached by Unity... is there any way to efficiently refresh that?
Answer by e-bonneville · Mar 29, 2010 at 08:23 PM
If I were you, I'd just copy your script into a new file. It's a hassle, but it should work.
Turns out in order to refresh the actual texture asset I need to re-import it under a different filename. It's a pain in the ass, but it works.