// Trigger function to take and save a photo // SavePhotoDirectory is the directory within Application.datapath to save the photo public void CapturePhoto() { photoCamera.CaptureCameraShot(Application.persistentDataPath); }