public string SerializeScene() { PrepareData(); if (!ValidateScene()) return ""; Hashtable htScene = new Hashtable(); htScene["objects"] = SerializationUtils.ToJSON(exportableObjects.ToArray()); htScene["renderOptions"] = SerializationUtils.ToJSON(options); htScene["assets"] = SerializationUtils.ToJSON(assets.ToArray()); htScene["mainCameraId"] = mainCameraId; InjectReferenceIDs(htScene); return SerializationUtils.FormatJson(htScene.encodeToJSON()); }