/// <summary> /// Load the target json file /// </summary> public void load(string f) { if (f != "") { targetFileName = f; } var clipCollection = JsonMoveClipCollection.loadJson(baseFolder + targetFileName); clipCollection.applyToClips(clipPool); updateAll(); }
/// <summary> /// Save to a file /// </summary> public void save(string f) { if (f != "") { targetFileName = f; } var path = baseFolder + targetFileName; Debug.Log("File saved to:" + path); var clipCollection = new JsonMoveClipCollection(clipPool); var json = clipCollection.toJson(); //Debug.Log("Json file generated<\n" + json + ">"); System.IO.File.WriteAllText(path, json); }