WeAthFoLD / MetaSprite

A fast, self-contained, highly customizable Aseprite-to-Unity importer.
MIT License
197 stars 31 forks source link

Support for automatic reimporting #13

Closed tullrich closed 3 years ago

tullrich commented 3 years ago

This pull request add support for automatic reimporting of .aseprite and .ase assets whenever the editor regains focus. "Automatic Reimport" must be enabled in the ImportSettings object for this feature to work on a particular file.

I've made the following source changes:

This hasn't been super thoroughly tested yet. However, much of this is based on how Animation Importer does the same, so I don't anticipate major problems.

I'll be happy to make any changes you want. Thanks!

WeAthFoLD commented 3 years ago

It seems more approriate that default value of automaticImport can be configured globally, or even become a global setting (some projects will likely want all ase to be automatically imported). Apart from that, the reimport feature itself looks pretty solid. I'll think about it more and then make the decision about the location of the setting.

Thanks a lot for your contribution!