_WaitForEndOfFrameComponent.cs 481 B

1234567891011121314151617181920212223
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEditor.Recorder.Timeline
  4. {
  5. [ExecuteInEditMode]
  6. class WaitForEndOfFrameComponent : _FrameRequestComponent
  7. {
  8. [NonSerialized]
  9. public RecorderPlayableBehaviour m_playable;
  10. public void LateUpdate()
  11. {
  12. RequestNewFrame();
  13. }
  14. protected override void FrameReady()
  15. {
  16. if (m_playable != null)
  17. m_playable.FrameEnded();
  18. }
  19. }
  20. }