private void Update() { if (m_IsActive && EditorApplication.isPlaying && !EditorApplication.isPaused) { ProfilerAction.Capture(); } }
IEnumerator CaptureFrame() { while (EditorApplication.isPlaying) { yield return(m_WaitForEndOfFrame); if (!EditorApplication.isPaused) { ProfilerAction.Capture(); } } }