vrchat-community / creator-companion

The Entry Point for Making Things in VRChat
https://vrchat.com/home/download
54 stars 372 forks source link

[BUG] Upgrade to Unity 2022 wipes user Assets #402

Open FairplexVR opened 7 months ago

FairplexVR commented 7 months ago

Describe the bug

Scripts/assets in the folder UdonSharp or UdonSharp1 or a sub-folder in any of those root folders are totally wiped during the migration. This is critical since VCC is skipping those folders during backup.

To Reproduce

  1. Write some assets in UdonSharp folder
  2. Migrate from Unity 2019 to Unity 2022 with VCC

Expected behavior

VCC should check is there are user created files in those paths and provide a way to keep them safe.

Screenshots

Screenshot_1

Related Product

VCC (VRChat Creator Companion)

Product Version

2.2.2

OS

Windows 11

Additional context

No response

orels1 commented 7 months ago

For extra detail, that folder gets wiped every time UdonSharp package is updated (or the SDK overall, even prior to migration). Since it is considered a legacy folder that was used by the old UdonSharp.

We might need to add extra checks to only clear it for legacy projects or make the folder list more nuanced to only affect 0.x UdonSharp files