annasplus.blogg.se

Jsonfx unity download
Jsonfx unity download





jsonfx unity download
  1. Jsonfx unity download how to#
  2. Jsonfx unity download code#

Private Dictionary currentLanguageValues Public class SmartLocTutorial : MonoBehaviour

Jsonfx unity download code#

thank you and this is my code that i've attached to the canvas of the 3D scene (from the Unity Samples project) : please try to help me even if this could be obvious solution. i so far been able to do it with text i create myself but to access the "Unity Samples: UI" element and change them when ever i wanted i just failed and all this is for hours later so. Well i should have the 3D menu (that you can find in the scene folder of the project) to make it change languages for the system language or the chosen language using Īssets. I hope to find a quick answer i am really new to the Ui, GUI and specially localization techniques, String assetPathAndName = AssetDatabase.GenerateUniqueAssetPath(Path.Combine(path, "Localization.asset")) ĭebug.LogWarning(string.Format("An asset called Localization was already found at UnityEngine.Debug:Log(Object) Localization:Awake() (at Assets/Scripts/Localization.cs:155) String newpath = Path.Combine(path, "Resources") ĪssetDatabase.CreateFolder(path, "Resources") String path = AssetDatabase.GetAssetPath(Selection.activeObject) Įlse if (!string.IsNullOrEmpty(Path.GetExtension(path))) Private static void CreateAsset () where T : ScriptableObject Public static void CreateLocalizationAsset() Public class TextLocalizationFiles : ScriptableObject This script is where the CSV file can be assigned in the Inspector. Here are 2 scripts that reference the CSV file:

Jsonfx unity download how to#

I know how to download the asset, I just need some help on how to add it to the array once its downloaded. I now want to store this CSV file on an external server, pull it down when the App starts, and apply it to the array so the other scripts can still reference it in the same way.

jsonfx unity download

I have an existing script that translates my text using a CSV file that is assigned to a public array in the Inspector. LocalizationData loadedData = JsonUtility.FromJson (text) String filePath = Path.Combine(path, fileName) Public IEnumerator LoadLocalizedText(string path, string fileName) StartCoroutine(LoadLocalizedText(filePath, fileName)) String filePath = "jar:file://" + Application.dataPath + "!/assets/" GameObject.Find("FadeManager").GetComponent ().TransitionToScene("ProtectEarthGame") PlayerPrefs.SetString("languageName", languageName)

jsonfx unity download

LanguageName = PlayerPrefs.GetString("languageName") If (PlayerPrefs.GetString("languageName") != "") Private string missingTextString = "Localized text not found" Public static LocalizationManager instance Public string languageName = "localizedText_en.json" When I try to find out where is the problem, i discovered, that file couldn`t be found. I have a problem with streaming assets on mobile devices(On PC everything is good).







Jsonfx unity download