コード例 #1
0
 private void Update()
 {
     if (m_IsActive && EditorApplication.isPlaying && !EditorApplication.isPaused)
     {
         ProfilerAction.Capture();
     }
 }
コード例 #2
0
        IEnumerator CaptureFrame()
        {
            while (EditorApplication.isPlaying)
            {
                yield return(m_WaitForEndOfFrame);

                if (!EditorApplication.isPaused)
                {
                    ProfilerAction.Capture();
                }
            }
        }