LeapRecorder.Play C# (CSharp) Method

Play() public method

public Play ( ) : void
return void
  public void Play() {
    state = RecorderState.Playing;
  }

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::Play