ink
ink copied to clipboard
InkLibrary FindOrCreateLibrary causing Unity to throw error.
This is the error that get's thrown:
UnityException: LoadAssetAtPath is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'InkLibrary'.
The line that throws it is line 71 in the InkLibrary class:
InkLibrary tmpSettings = AssetDatabase.LoadAssetAtPath<InkLibrary>(defaultPath);
Was using an older release. :/