Quantcast
Channel: Questions in topic: "il2cpp"
Viewing all articles
Browse latest Browse all 598

Unable to write files to storage [SD or Internal] when building with IL2CPP in unity 2018.1.0b4

$
0
0
When I build with IL2CPP in unity 2018.1.0b4 and try to write a file to the storage nothing happens! here's my code...
using UnityEngine; using System.IO; using Newtonsoft.Json; public class Serializer : MonoBehaviour { public void Serialize () { string json = JsonConvert.SerializeObject(saveData, Formatting.Indented); File.WriteAllText(Path.Combine(Application.persistentDataPath, "savegameData.json"), json); } }

Viewing all articles
Browse latest Browse all 598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>