/// <summary> /// Static constructor to initialise the serializer. /// </summary> static GameSettings() { _serializer.RegisterJsonSerializationSettings(typeof(GameSettings), new JsonSerializerSettings() { Formatting = Formatting.Indented, SerializationBinder = new DefaultSerializationBinder() }); }
public void OnEnable() { VR = !XRSettings.loadedDeviceName.Equals(string.Empty); _serializer.RegisterJsonSerializationSettings(typeof(GameSettings), new JsonSerializerSettings() { Formatting = Formatting.Indented, SerializationBinder = new DefaultSerializationBinder() }); }