Is there a work around for no ES3.GetFiles on WebGL builds?
Posted: Tue Jan 26, 2021 12:46 am
I am trying to populate a drop down on my Map Editor to load. I am saving each one to a separate json file.
However in WebGL I cannot use ES3.GetFiles.
Only thing I can think of is using a single file for all user created maps.
Any Ideas
Code: Select all
private void GetFilenamesToLoad()
{
loadDropDown.options.Clear();
foreach (var filename in ES3.GetFiles(Application.persistentDataPath + "/UserMaps/"))
{
loadDropDown.options.Add(new TMP_Dropdown.OptionData(filename));
}
loadDropDown.RefreshShownValue();
}
Only thing I can think of is using a single file for all user created maps.
Any Ideas