- Home /
Question by
cgarciae · May 29, 2014 at 12:25 AM ·
serializationsavingunityserializer
Saving/Loading a GameObject with Texture on Unity3D with Unity Serializer
I am trying to save a single game object (although I want the game object to contain children as well) downloaded from the web. First I do this
var s = JSONLevelSerializer.SaveObjectTree( obj );
PlayerPrefs.SetString( "test", s );
PlayerPrefs.Save();
to save. And later (the next time I click play)
JSONLevelSerializer.LoadObjectTree (PlayerPrefs.GetString ("test"));
It indeed loads back the game object but
with the render turned off without
without the original texture
How can I save/load game objects with texture?
Comment