コード例 #1
0
ファイル: BugReporter.cs プロジェクト: JDamour/ShapeLab
    private void SavingTriggered()
    {
        if (saving_triggered_)
        {
            return;
        }

        if (saveReplayFrames)
        {
            replayPath = handController.FinishAndSaveRecording();
        }
        else
        {
            handController.StopRecording();
            replayPath = "";
        }
        handController.PlayRecording();
        if (synchronizeRecorder != null &&
            synchronizeRecorder.camRecorder != null)
        {
            synchronizeRecorder.camRecorder.StopRecording();
        }
        SetProgressText("SAVING", Color.red);
        SetInstructionText("SAVING", Color.red);
        if (replayPath.Length > 0)
        {
            SetSavedPathsText("Replay File @ " + replayPath);
        }
        saving_triggered_ = true;
    }
コード例 #2
0
ファイル: RecordingControls.cs プロジェクト: Bdiaz20/Slug
 private void allowEndRecording()
 {
     if (controlsGui != null)
     {
         controlsGui.text += endRecordingKey + " - End Recording\n";
     }
     if (Input.GetKeyDown(endRecordingKey))
     {
         string savedPath = _controller.FinishAndSaveRecording();
         recordingGui.text = "Recording saved to:\n" + savedPath;
     }
 }
コード例 #3
0
    void Update()
    {
        HandController controller = GetComponent <HandController>();

        if (Input.GetKeyDown(record))
        {
            controller.Record();
        }

        if (Input.GetKeyDown(finishAndSave))
        {
            Debug.Log("Recording saved to: " + controller.FinishAndSaveRecording());
        }

        if (Input.GetKeyDown(resetRecording))
        {
            controller.ResetRecording();
        }
    }