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?

more ▼

asked Mar 29, 2010 at 08:16 PM

avatar image

13.3k 93 173 259

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

If I were you, I'd just copy your script into a new file. It's a hassle, but it should work.

more ▼

answered Mar 29, 2010 at 08:23 PM

avatar image

6.5k 253 231 304

You could also try re-importing them.

Mar 29, 2010 at 08:23 PM e.bonneville

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.

Jun 08, 2010 at 02:28 AM qJake

Well if it works, it works. ;)

Jun 13, 2010 at 05:44 PM e.bonneville
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Mar 29, 2010 at 08:16 PM

Seen: 2610 times

Last Updated: Mar 29, 2010 at 08:45 PM