c# - EditorWindow implementation needs reimport to load asset -
i try extend unity editor custom editorwindow implementations. follows loosely this guide.
i try save asset containing serialized objects sort of database.
that works fine!
however. if close unity , reopen it
db = (figuredb)assetdatabase.loadassetatpath("assets/logic/database/figuredb.asset", typeof(figuredb));
doesnt load asset file unless manually reimport editorwindow implementation within unity (rightclick on cs-file -> reimport).
i code in visual studio (whether matters or not.... suspected line-endings-problem, doesnt seem case)
after reopening unity see within inspector (while selecting asset) the associated script can not loaded. please fix compile errors , assign valid script
(even though there no compile time errors visible)
any suggestions? if more info necessary gladly provide them, doesnt seem code problem rather ide-problem.
do had use this?
assetdatabase.importasset("assets/logic/database/figuredb.asset", importassetoptions.default);
Comments
Post a Comment