



String json = JsonConvert.SerializeObject(obj) īyte data = (json) String path = string.Format(".json", Application.persistentDataPath, filename) public MyObject ReadData(string filename)
Unity hololens keyword manager manual start how to#
Some sample code below shows you how to store and retrieve some type of custom object by converting it to and from json from the device storage. This will give per type of device a specific path back where the data can be stored. The best way is using the public static property called Application.persistentDataPath from Unity. This path allows you to perform read and write actions without any (strange) capabilities activated and can be used in Windows Store apps. One of my favorite is using the persistent data path which allows you to store data which need to be kept between runs of your application. There are different ways of storing data on HoloLens device storage.
