hey everyone,
i have a model where its texture is changed when the user taps on it, it sources the texture from the ipad’s photos.
Im currently using EZgame saver to save my game, but when i save the game, and then reload it, the new texture does not save.
how can i save the state of the texture? any help?
you could be funny and serialize the textures bytes to string and save the string.
just be aware that most platforms have limited sizes of playerprefs (web has 1mb per game, iOS uses NSuserdefaults which are loaded at the start of the app and kept in ram for its lifetime so large ones are a stupid idea, on android there are also limits and consequences)
Unless you are on the webplayer, use System.IO.File.WriteAllBytes and ReadAllBytes instead, much faster and saver
im using iOS, the image is being loaded from the iPads photo gallery by the user to alter the texture to whatever they want. is there a way i can get the location of the texture file returned as a string? then when it loads it will load the string?
i got a slight step further,
i am able to save the path for when the texture is in the documents folder, the problem is that everytime the texture loaded, it renames it differently.
also, does the documents folder work like a cache? does it dump out the memory after it doesnt need it anymore?
anybody know how to identify the directory of the original image in the gallery before it is placed in the documents folder?