Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

How to save and load lists and properties of Unity UI on Andorid?

$
0
0
Hello guys! In my project I was trying to save lists and Unity UI using UnitySerializer @whydoidoit. Well... on PC and MAC it works very well but on android it doesn't load at all and when it try to save progress it just cause lags and glitches. The question is: **how to save lists and Unity UI on android using UnitySerializer?** If it is impossible suggest please another way of saving. Here is a part of code that I use to save progress: #pragma strict import System.Collections.Generic; import System; var _Achievments: List. = new List.(); var _Books: List. = new List.(); var Game:boolean; var Time_Next_saving:float; class Book extends System.Object { var Name:String; var Price:float; var Cover:Texture; var BOUGHT:Texture; var Locked:Texture; var ID:int; var Item_id:String; var Availabe:boolean; } class Achievement extends System.Object { var Name:String; var GreenTick:GameObject; var GotIt:boolean; } function Update() { if(!Game) { if(Time_Next_saving>=0) { Time_Next_saving-=Time.deltaTime; } else { Time_Next_saving = 9; //LevelSetilizer.CheckPoint(); Debug.Log("Game is saved"); } } } Here is screenshot of hierarchy ( I captured objects that should be saved using UnitySerializer): ![alt text][1] [1]: /storage/temp/56853-screen-shot-2015-10-24-at-175004.png

Viewing all articles
Browse latest Browse all 1875

Latest Images

Trending Articles



Latest Images

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