LeapRecorder.Reset C# (CSharp) Method

Reset() public method

public Reset ( ) : void
return void
  public void Reset() {
    frames_ = new List<byte[]>();
    frame_index_ = 0;
  }

Usage Example

Example #1
0
        void Update()
        {
            if (Input.GetKeyDown(keyToRecord))
            {
                Debug.Log("Record");
                recorder.state = RecorderState.Recording;
            }
            else if (Input.GetKeyDown(keyToSave))
            {
                Debug.Log("Save");

                recorder.state = RecorderState.Paused;
                Debug.Log(recorder.SaveToNewFile(recorderFilePath));
            }
            else if (Input.GetKeyDown(keyToReset))
            {
                recorder.Reset();
            }
            else if (Input.GetKeyDown(keyToPlay))
            {
                recorder.Play();
            }
            else if (Input.GetKeyDown(keyToPause))
            {
                recorder.state = RecorderState.Paused;
            }
            else if (Input.GetKeyDown(keyToLoad))
            {
                recorder.state = RecorderState.Stopped;
                recorder.Reset();
                recorder.Load(playerFilePath);
                recorder.Play();
            }
        }
All Usage Examples Of LeapRecorder::Reset