Beispiel #1
0
 public void SetRunningTime(float newRunningTime)
 {
     StartProcessingAnimationMode();
     if (!CurrentSequence.IsPlaying)
     {
         CurrentSequence.Play();
     }
     CurrentSequence.Pause();
     CurrentSequence.RunningTime = newRunningTime;
 }
        public void SetRunningTime(float newRunningTime)
        {
            StartProcessingAnimationMode();
            if (!CurrentSequence.IsPlaying)
            {
                CurrentSequence.Play();
            }
            CurrentSequence.Pause();

            USUndoManager.PropertyChange(CurrentSequence, "Set Running Time");
            CurrentSequence.RunningTime = newRunningTime;
        }
Beispiel #3
0
        private void PlayOrPause()
        {
            if (!CurrentSequence)
            {
                return;
            }

            if (CurrentSequence.IsPlaying)
            {
                CurrentSequence.Pause();
            }
            else
            {
                StartProcessingAnimationMode();
                CurrentSequence.Play();
            }
        }
        private void PlayOrPause()
        {
            if (!CurrentSequence)
            {
                return;
            }

            if (CurrentSequence.IsPlaying)
            {
                CurrentSequence.Pause();

                if (isArmed && GetOrSpawnRecorder())
                {
                    GetOrSpawnRecorder().PauseRecording();
                }
            }
            else
            {
                USUndoManager.PropertyChange(CurrentSequence, "Play");

                if (isArmed && !System.IO.Directory.Exists(USRecordRuntimePreferences.CapturePath))
                {
                    EditorUtility.DisplayDialog("Error", String.Format("Recording Directory : {0} doesn't exist, make sure you set one up in the uSequencer preferences (Edit/uSeqeucer/Recording Preferences)", USRecordRuntimePreferences.CapturePath), "OK");
                    return;
                }

                StartProcessingAnimationMode();
                CurrentSequence.Play();

                if (isArmed && GetOrSpawnRecorder())
                {
                    var recordingSequence = GetOrSpawnRecorder();

                    recordingSequence.StartRecording();

                    recordingSequence.CapturePath      = USRecordRuntimePreferences.CapturePath;
                    recordingSequence.CaptureFrameRate = USRecord.GetFramerate();
                    recordingSequence.UpscaleAmount    = USRecord.GetUpscaleAmount();
                }
            }
        }