bsimser / Inventory-Pro

https://devdog.io
MIT License
2 stars 0 forks source link

Assetdatabase is not refreshed when setting the folder. #271

Open bsimser opened 5 years ago

bsimser commented 5 years ago

Original report by Herman Tulleken (Bitbucket: herman_tulleken, ).


From user:

Also found another issue I noticed while setting up the item database, it doesn't refresh the Assetdatabase when setting the folder. This resulted in Trying to grab folder for Items but could not be found. Creating one... followed by an error: Parent directory must exist before creating asset at: Assets/InventoryProFiles/Items/Items/item_131825964183705800_PFB.prefab when creating a new inv item. If you use UnityEditor.AssetDatabase.Refresh(); after setting the database folder, users won't have to click on the parent folder, in the project hierarchy to refresh it.