예제 #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();
            }
        }
예제 #2
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);
        }