Closed Red-Cat-Fat closed 5 months ago
I realized that this problem was related to the issue https://github.com/elmortem/localization/issues/3.
So I guess then as part of this problem discuss how to upload files, since LocaleAsset is searched through UnityEditor.AssetDatabase.FindAssets("t:LocaleAsset");
and LocalizeSettings via Resources.LoadAll<LocalizeSettings>("");
It is worth choosing one of the 2 chairs.
FindObjectsOfTypeAll work only with loaded assets.
UnityEditor.AssetDatabase.FindAssets("t:LocaleAsset") - work only in editor for cache.
Resources.LoadAll
Fixed at 1.0.4
I tried loading data from a table into an empty project. When I clicked on the "Load All from Google Sheets" button, an error appeared in the Unity console:
I suspect that the problem is finding the file via
Resources.LoadAll<LocalizeSettings>("")
, which restricts the search area within the package folder. I added the package itself via Unity Package Manager, using the git link.When I replaced the search with
Resources.FindObjectsOfTypeAll<LocalizeSettings>()
everything worked