void OnGUI() { if (GUI.Button(new Rect(Screen.width / 2, 0, 100, 60), "保留案发现场")) { if (!isSaving) { progress = 0f; ScreenRecordCtrl.CallScreenRecord(OnProcessingDone, OnFileSaveProgress, OnFileSaved); } } }
void OnDestroy() { ScreenRecordCtrl.DestroyScreenRecord(); }
void Start() { ScreenRecordCtrl.CreateScreenRecord(); }