private void DeserializeFromPath() { // Read in the serialized state string content = File.ReadAllText(Path); // Restore the value Value = SerializationHelpers.DeserializeFromContent<SerializedStruct, JsonNetSerializer>(content); Debug.Log("Object state has been restored from " + Path); }
private void DeserializeFromPath() { #if (!UNITY_EDITOR && UNITY_WINRT) == false // Read in the serialized state string content = File.ReadAllText(Path); // Restore the value Value = fiSerializationHelpers.DeserializeFromContent <SerializedStruct, FullSerializerSerializer>(content); Debug.Log("Object state has been restored from " + Path); #endif }