unity-elastic-inventory icon indicating copy to clipboard operation
unity-elastic-inventory copied to clipboard

First time setup error workaround

Open ashblue opened this issue 1 year ago • 4 comments

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 avatar Jan 20 '24 00:01 ashblue

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

ashblue avatar Feb 26 '24 23:02 ashblue

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.

ashblue avatar Aug 02 '24 17:08 ashblue

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.

ashblue avatar Jan 10 '25 19:01 ashblue

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.

ashblue avatar Jan 11 '25 02:01 ashblue