public ISpray SaveWorkInProgress() { Debug.Log("Saving WIP"); int id = cameraCapture.Save(); // automatically clears the current render texture var spray = new SavedSpray(id, PhotoIO.saveMap.Count - 1); sprays.Add(spray); // so we can access it after saving currentSpray = spray; googleAnalytics.LogEvent("Spray", "Save Work In Progress", spray.Id.ToString(), 1); if (SprayCreated != null) { SprayCreated(spray); } return(spray); }