- changed status to resolved
GlobalConfig dont work in runtime with path "***/Resources/***" (required upper "R")
Issue #879
resolved
- 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.
- Update plugin, create GlobalConfig by path “Assets/Resources/Config.asset“
- -
- 2020.3.38f1
- 3.1.3
- no
- Windows 10
I found difference between versions:
-
3.0.10
GlobalConfig<T>.LoadInstanceIfAssetExists()
has codeif (GlobalConfig<T>.ConfigAttribute.IsInResourcesFolder)
whereIsInResourcesFolder
has codethis.AssetPath.Contains("/resources/", StringComparison.OrdinalIgnoreCase)
where handle ignore case
-
3.1.3
GlobalConfigUtility<>.LoadInstanceIfAssetExists
has codeif (assetPath.Contains("/resources/"))
without ignore case comparison. - BUG
Comments (1)
-
- Log in to comment
Thank you! This has been fixed, if you need a hotfix for this ASAP let me know.