Advanced Play Mode Functions
Saving objects
JsonExporter jsonExporter = new JsonExporter();sloydObject.GetControls().MakeCurrentValuesAsDefault();jsonExporter.Export(Path.Combine(folderPath, "MyObject.sloyd"), sloydObject);byte[] bytes = jsonExporter.GetBytes(sloydObject);string jsonText = GetJsonText(); // read text file from disc
SloydObject sloydObject = new SloydObject(jsonText, "MyObject");
sloydObject.RebuildMesh();