Beispiel #1
0
        protected void GUI_BaseOptions()
        {
            serializedObject.Update();

            if (_baseCapture == null)
            {
                return;
            }

            //DrawDefaultInspector();

            if (!_baseCapture.IsCapturing())
            {
                GUILayout.Space(8f);
                EditorUtils.BoolAsDropdown("Capture Mode", _propIsRealtime, "Realtime Capture", "Offline Render");
                GUILayout.Space(8f);

                if (serializedObject.ApplyModifiedProperties())
                {
                    EditorUtility.SetDirty(target);
                }

                GUI_User();

                // After the user mode we must update the serialised object again
                serializedObject.Update();

                EditorUtils.DrawSection("Start / Stop", ref _isExpandedStartStop, GUI_StartStop);
                EditorUtils.DrawSection("Output", ref _isExpandedOutput, GUI_OutputFilePath);
                EditorUtils.DrawSection("Visual", ref _isExpandedVisual, GUI_Visual);
                EditorUtils.DrawSection("Audio", ref _isExpandedAudio, GUI_Audio);
                EditorUtils.DrawSection("Post", ref _isExpandedPost, GUI_Post);
                EditorUtils.DrawSection("Misc", ref _isExpandedMisc, GUI_Misc);
                EditorUtils.DrawSection("About", ref _isExpandedAbout, GUI_About);

                if (serializedObject.ApplyModifiedProperties())
                {
                    EditorUtility.SetDirty(target);
                }

                GUI_Controls();
            }
            else
            {
                GUI_Stats();
                GUI_Progress();
                GUI_Controls();
            }
        }
        protected override void GUI_User()
        {
            if (_baseCapture != null && !_baseCapture.IsCapturing())
            {
                serializedObject.Update();

                bool boolTrue = true;
                EditorUtils.DrawSection("Capture From Camera", ref boolTrue, GUI_Camera);

                if (serializedObject.ApplyModifiedProperties())
                {
                    EditorUtility.SetDirty(target);
                }
            }
        }
Beispiel #3
0
        protected override void GUI_User()
        {
            if (_baseCapture != null && !_baseCapture.IsCapturing())
            {
                serializedObject.Update();

                bool boolTrue = true;
                EditorUtils.DrawSection("Capture from Camera 360 + ODS", ref boolTrue, GUI_Camera);

#if AVPRO_MOVIECAPTURE_UNITYPROFILER_55
                // This component makes the profiler use a TON of memory, so warn the user to disable it
                if (UnityEngine.Profiling.Profiler.enabled)
                {
                    ShowNoticeBox(MessageType.Warning, "Having the Unity profiler enabled while using the CaptureFromCamera360ODS component is not recommended.\n\nToo many samples are generated which can make the system run out of memory\n\nDisable the profiler, close the window and remove the tab.  A Unity restart may be required after disabling the profiler recording.");
                }
#endif

                if (serializedObject.ApplyModifiedProperties())
                {
                    EditorUtility.SetDirty(target);
                }
            }
        }