ashblue / unity-elastic-inventory

An easy to use Unity inventory framework built with scaling and extendability in mind
MIT License
42 stars 2 forks source link

First time setup error workaround #16

Open ashblue opened 8 months ago

ashblue commented 8 months ago

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.

  1. Delete "Assets/ElasticInventory/Resources/ItemDatabase.asset" file (leave the folders alone)
  2. Uninstall the package
  3. Install the package
  4. Run the setup wizard
  5. 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.

ashblue commented 7 months ago

This issue seems to have been fixed in Unity 2023. Need to verify that though.

ashblue commented 1 month ago

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.