First time setup error workaround
The first time you setup an error may fire and fail to create the starting item definition (randomly fails on first time setup). You can use this library perfectly fine as is with the error (it will go away). If you still want the starting item script do the following.
- Delete "Assets/ElasticInventory/Resources/ItemDatabase.asset" file (leave the folders alone)
- Uninstall the package
- Install the package
- Run the setup wizard
- The starting script should now appear as expected
Alternatively you can just copy and paste this code here.
https://github.com/ashblue/unity-elastic-inventory/blob/develop/Assets/com.fluid.elastic-inventory/Editor/Scripts/ConfigWizard.cs#L56
I'll have to dig and patch this at a later date. It looks like the folders aren't getting detected by the setup wizard.
This issue seems to have been fixed in Unity 2023. Need to verify that though.
There appears to be an async failure issue with Unity's boot cycle that was introduced in 2022, looking into potential solutions. Will try a new fix on the next pass.
After a lot of consideration the best solution here would be a first time setup window that generates the files instead of the custom setup hook I'm using. DoTween does this well and should be mimicked.
The issue "seems" to be fixed in Unity 6, but I still think it's safer to move to a setup window for a number of reasons. Keeping the issue open.