Пример #1
0
        protected virtual void OnEnable()
        {
            if (target != null)
            {
                m_InputEditors    = new List <InputEditorState>();
                m_FrameRateLabels = EnumHelper.MaskOutEnumNames <EFrameRate>(0xFFFF, (x) => FrameRateHelper.ToLable((EFrameRate)x));

                var pf = new PropertyFinder <RecorderSettings>(serializedObject);
                m_FrameRateMode        = pf.Find(x => x.m_FrameRateMode);
                m_FrameRate            = pf.Find(x => x.m_FrameRate);
                m_DurationMode         = pf.Find(x => x.m_DurationMode);
                m_StartFrame           = pf.Find(x => x.m_StartFrame);
                m_EndFrame             = pf.Find(x => x.m_EndFrame);
                m_StartTime            = pf.Find(x => x.m_StartTime);
                m_EndTime              = pf.Find(x => x.m_EndTime);
                m_SynchFrameRate       = pf.Find(x => x.m_SynchFrameRate);
                m_CaptureEveryNthFrame = pf.Find(x => x.m_CaptureEveryNthFrame);
                m_FrameRateExact       = pf.Find(x => x.m_FrameRateExact);
                m_DestinationPath      = pf.Find(w => w.m_DestinationPath);
                m_BaseFileName         = pf.Find(w => w.m_BaseFileName);

                m_RTInputSelector = new RTInputSelector(target as RecorderSettings);

                BuildInputEditors();
            }
        }
        protected virtual void OnEnable()
        {
            if (target != null)
            {
                var pf = new PropertyFinder <RecorderSettings>(serializedObject);
                m_CaptureEveryNthFrame = pf.Find(w => w.captureEveryNthFrame);
                m_FileNameGenerator    = pf.Find(w => w.fileNameGenerator);

                s_SeparatorTexture = Resources.Load <Texture2D>("vertical_gradient");
            }
        }
Пример #3
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (target == null)
            {
                return;
            }

            var pf = new PropertyFinder <ImageRecorderSettings>(serializedObject);

            m_OutputFormat = pf.Find(w => w.m_OutputFormat);
        }
Пример #4
0
        protected virtual void OnEnable()
        {
            if (target != null)
            {
                var pf = new PropertyFinder <RecorderSettings>(serializedObject);
                m_CaptureEveryNthFrame = pf.Find(w => w.captureEveryNthFrame);
                m_FileNameGenerator    = pf.Find(w => w.fileNameGenerator);
                m_Take = pf.Find(w => w.take);

                showFormat     = new SavedBool($"{target.GetType()}.showFormat", true);
                showOutputFile = new SavedBool($"{target.GetType()}.showOutputFile", true);;
                showCapture    = new SavedBool($"{target.GetType()}.showCapture", true);;
            }
        }
Пример #5
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (target == null)
            {
                return;
            }
            m_RTInputSelector = new RTInputSelector(target as RecorderSettings, "Pixels");

            var pf = new PropertyFinder <MediaRecorderSettings>(serializedObject);

            m_OutputFormat = pf.Find(w => w.m_OutputFormat);
        }
Пример #6
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (target == null)
            {
                return;
            }

            var pf = new PropertyFinder <MediaRecorderSettings>(serializedObject);

            m_OutputFormat = pf.Find(w => w.m_OutputFormat);
#if UNITY_2018_1_OR_NEWER
            m_EncodingBitRateMode = pf.Find(w => w.m_VideoBitRateMode);
#endif
        }
Пример #7
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (target == null)
            {
                return;
            }

            var pf = new PropertyFinder <AOVRecorderSettings>(serializedObject);

            m_OutputFormat   = pf.Find(w => w.outputFormat);
            m_OutputFormat   = serializedObject.FindProperty("outputFormat");
            m_AOVGSelection  = serializedObject.FindProperty("AOVGSelection");
            m_AOVCompression = serializedObject.FindProperty("AOVCompression");
        }
Пример #8
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (target == null)
            {
                return;
            }

            var pf = new PropertyFinder <ImageRecorderSettings>(serializedObject);

            m_OutputFormat = pf.Find(w => w.OutputFormat);

            m_OutputFormat = serializedObject.FindProperty("outputFormat");
            m_CaptureAlpha = serializedObject.FindProperty("captureAlpha");
            m_ColorSpace   = serializedObject.FindProperty("m_ColorSpace");
        }