kimsama / Unity-QuickSheet

Unity-QuickSheet enables you to use spreadsheet file data within Unity editor.
http://kimsama.github.io/Unity-QuickSheet
MIT License
1.05k stars 190 forks source link

Initialize TemplatePath when ScriptableObject asset created #51

Closed kanonji closed 6 years ago

kanonji commented 6 years ago

5bkpr2o - imgur

As far as I know, ScriptableObject.OnEnable() is called when Unity detect some scripts created or changed in Unity Editor env. Also called when an asset of the ScriptableObject is selected first time after starting up Unity Editor.

Because of that behavior, TemplatePath I assign to my custom templates folder is always reset to QuickSheet/GDataPlugin/Templates described in gif animation. So I have replaced OnEnable() with Awake().

kimsama commented 6 years ago

Cool! Thank you for the patch.