GlobalConfig dont work in runtime with path "***/Resources/***" (required upper "R")

Issue #879 resolved
Александр Зонов created an issue
  1. After update 3.0.10 to 3.1.3 global configs were broken. At runtime config not detected in resources an plugin create runtime instance.
  2. Update plugin, create GlobalConfig by path “Assets/Resources/Config.asset“
  3. -
  4. 2020.3.38f1
  5. 3.1.3
  6. no
  7. Windows 10

I found difference between versions:

  • 3.0.10

    • GlobalConfig<T>.LoadInstanceIfAssetExists() has code if (GlobalConfig<T>.ConfigAttribute.IsInResourcesFolder) where IsInResourcesFolder has code this.AssetPath.Contains("/resources/", StringComparison.OrdinalIgnoreCase) where handle ignore case
  • 3.1.3

    • GlobalConfigUtility<>.LoadInstanceIfAssetExists has code if (assetPath.Contains("/resources/")) without ignore case comparison. - BUG🔴

Comments (1)

  1. Log in to comment