ink icon indicating copy to clipboard operation
ink copied to clipboard

InkLibrary FindOrCreateLibrary causing Unity to throw error.

Open talothman opened this issue 10 years ago • 1 comments

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);

talothman avatar Nov 19 '16 16:11 talothman

Was using an older release. :/

talothman avatar Nov 19 '16 17:11 talothman