WeAthFoLD / MetaSprite

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

Store file config under same folder of the plugin #1

Closed WeAthFoLD closed 7 years ago

WeAthFoLD commented 7 years ago

It is not very satisfying to have to store file configs under a global folder. It is prefably placed in MetaSprite/Config folder for each project.

Some user might want to move MetaSprite folder somewhere else than Plugins folder, so we need means to detect where the plugin is placed.

WeAthFoLD commented 7 years ago

One usable approach is to call UnityEditor.MonoScript.FromScriptableObject on a test instance, then use AssetDatabase.GetAssetPath to obtain its path, then use this path to decide plugin path.