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().
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 replacedOnEnable()
withAwake()
.