Esempio n. 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_Inputs               = pf.Find(x => x.m_InputsSettings);
                m_Verbose              = pf.Find(x => x.m_Verbose);
                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);

                foreach (var input in (target as RecorderSettings).m_InputsSettings)
                {
                    m_InputEditors.Add(new InputEditorState(GetFieldDisplayState, input)
                    {
                        visible = true
                    });
                }
            }
        }
Esempio n. 2
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (target == null)
            {
                return;
            }

            m_RTInputSelector = new RTInputSelector(target as RecorderSettings, "Pixels");

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

            m_Inputs       = pf.Find(w => w.m_InputsSettings);
            m_OutputFormat = pf.Find(w => w.m_OutputFormat);
        }
 protected virtual void OnEnable()
 {
     if (target != null)
     {
         var pf = new PropertyFinder <RecorderSettings>(serializedObject);
         m_Inputs         = pf.Find(x => x.m_SourceSettings);
         m_Verbose        = pf.Find(x => x.m_Verbose);
         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);
     }
 }
Esempio n. 4
0
        protected override void OnEnable()
        {
            base.OnEnable();

            if (target == null)
            {
                return;
            }

            m_Candidates = new [] { "Command Buffered Camera", "Camera as RenderTexture", "Render Texture" };
            var pf = new PropertyFinder <ImageRecorderSettings>(serializedObject);

            m_Inputs          = pf.Find(w => w.m_SourceSettings);
            m_DestinationPath = pf.Find(w => w.m_DestinationPath);
            m_BaseFileName    = pf.Find(w => w.m_BaseFileName);
            m_OutputFormat    = pf.Find(w => w.m_OutputFormat);
        }