public void StartRecording()
    {
        capturePreview.Clear();
        currentRecordLength = videoData.getCurrentSceneLength();
        GetSocialCapture.ContentFolderName = videoData.getCurrentSceneName();
        GetSocialCapture.GifName           = videoData.getCurrentCharacterName();

        Invoke("Record", preperationTime);
        Invoke("StopRacording", currentRecordLength);
        Debug.Log("record pressed");

        capturePreview.Stop();
        //capturePreview.GetComponent<RawImage>().enabled = false;
    }
 private void OnEnable()
 {
     sceneName.text = vd.getCurrentSceneName();
 }