Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize TemplatePath when ScriptableObject asset created #51

Merged
merged 1 commit into from
Dec 15, 2017

Conversation

kanonji
Copy link
Contributor

@kanonji kanonji commented Dec 12, 2017

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
Copy link
Owner

kimsama commented Dec 15, 2017

Cool! Thank you for the patch.

@kimsama kimsama merged commit f434e7e into kimsama:master Dec 15, 2017
@kanonji kanonji deleted the patch-4 branch December 15, 2017 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants