コード例 #1
0
        public IEnumerator UpdateAllCoroutine()
        {
            // Get resolutions to capture
            List <ScreenshotResolution> resolutions = m_Config.GetActiveResolutions();

            m_Config.UpdateGameviewResolution();

            // Capture the resolutions
            yield return(StartCoroutine(CaptureCoroutine(resolutions, false, false)));
        }
コード例 #2
0
        public virtual void DrawResolutionGUI()
        {
            DrawResolutionTitleGUI();

            if (m_Config.m_ShowResolutions == false)
            {
                return;
            }

            EditorGUILayout.PropertyField(m_ResolutionCaptureMode);
            EditorGUILayout.Separator();

            if (m_Config.m_ResolutionCaptureMode == ScreenshotConfig.ResolutionMode.CUSTOM_RESOLUTIONS)
            {
                DrawResolutionContentGUI();

                if (m_Config.GetActiveResolutions().Count == 0)
                {
                    EditorGUILayout.HelpBox("No active resolutions.", MessageType.Warning);
                }
            }
        }