Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I am working of some editor scripts for Unity but have found that it is difficult to force Unity to reload my editor scripts.

My scripts are modelled on the static constructor approach and perform some manipulation of the Tag Manager.

Currently the static constructor is called when either:

  1. Unity is launched, or
  2. Changes to a script (any of them) are written to disk

While verifying that the tag manipulation performed by the script is correct I am manually setting the tags via the GUI and then triggering script by saving a trivial change to the file.

This is clearly a clumsy workaround, is there a better way to force Unity to reload editor scripts?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.