public void Save() { QuickSaveWriter.Create("Inputs") .Write("Input1", Input1.text) .Write("Input2", Input2.text) .Write("Input3", Input3.text) .Write("Input4", Input4.text) .Commit(); Content.text = QuickSaveRaw.LoadString("Inputs.json"); }
public void QuickSaveRawExample() { // Use QuickSaveRaw to directly save / load text or binary data to / from files QuickSaveRaw.SaveString("TextFile.txt", "Some text to save"); QuickSaveRaw.SaveBytes("BytesFile.txt", new byte[] { 1, 2, 3, 4 }); #pragma warning disable 0219 string text = QuickSaveRaw.LoadString("TextFile.txt"); byte[] bytes = QuickSaveRaw.LoadBytes("BytesFile.txt"); #pragma warning restore 0219 }
public static void UpdateSaveList() { UI.document.getElementsByClassName("WindowContent")[0].innerHTML = ""; foreach (var saveName in QuickSaveRaw.GetAllFiles()) { bool selected = selectedFile == saveName; object createdImageObject = UI.document.Run("CreateLoadingRecord", "WindowContent", saveName, selected); loadNote = (HtmlElement)((Jint.Native.JsValue)createdImageObject).ToObject(); loadNote.onclick = CameraController.SelectLoadNote; } }