예제 #1
0
 void StartRecording()
 {
     m_State = EState.WaitingForPlayModeToStartRecording;
     GameViewSize.DisableMaxOnPlay();
     EditorApplication.isPlaying = true;
     m_FrameCount = Time.frameCount;
     return;
 }
 /// <summary>
 /// Used to Start the recording with current settings.
 /// If not already the case, the Editor will also switch to PlayMode.
 /// </summary>
 public void StartRecording()
 {
     if (m_State == State.Idle)
     {
         m_State = State.WaitingForPlayModeToStartRecording;
         GameViewSize.DisableMaxOnPlay();
         EditorApplication.isPlaying = true;
         m_FrameCount = Time.frameCount;
     }
 }
예제 #3
0
 /// <summary>
 /// Used to Start the recording with current settings.
 /// If not already the case, the Editor will also switch to PlayMode.
 /// </summary>
 public void StartRecording()
 {
     if (EditorApplication.isPlaying)
     {
         // Already in play mode, so start recording now
         StartRecordingInternal();
     }
     else if (m_State == State.Idle)
     {
         // Not playing yet and idle
         m_State = State.WaitingForPlayModeToStartRecording;
         GameViewSize.DisableMaxOnPlay();
         EditorApplication.isPlaying = true;
         m_FrameCount = Time.frameCount;
     }
 }