public override void OnEnable()
        {
            m_Mode = FindSetting((Settings x) => x.mode);

            m_Depth = new DepthSettings {
                scale = FindSetting((Settings x) => x.depth.scale)
            };

            m_MotionVectors = new MotionVectorsSettings {
                sourceOpacity           = FindSetting((Settings x) => x.motionVectors.sourceOpacity),
                motionImageOpacity      = FindSetting((Settings x) => x.motionVectors.motionImageOpacity),
                motionImageAmplitude    = FindSetting((Settings x) => x.motionVectors.motionImageAmplitude),
                motionVectorsOpacity    = FindSetting((Settings x) => x.motionVectors.motionVectorsOpacity),
                motionVectorsResolution = FindSetting((Settings x) => x.motionVectors.motionVectorsResolution),
                motionVectorsAmplitude  = FindSetting((Settings x) => x.motionVectors.motionVectorsAmplitude),
            };
        }
Ejemplo n.º 2
0
        public override void OnEnable()
        {
            m_Mode = FindSetting((Settings x) => x.mode);

            m_Depth = new DepthSettings
            {
                scale = FindSetting((Settings x) => x.depth.scale)
            };

            m_MotionVectors = new MotionVectorsSettings
            {
                sourceOpacity = FindSetting((Settings x) => x.motionVectors.sourceOpacity),
                motionImageOpacity = FindSetting((Settings x) => x.motionVectors.motionImageOpacity),
                motionImageAmplitude = FindSetting((Settings x) => x.motionVectors.motionImageAmplitude),
                motionVectorsOpacity = FindSetting((Settings x) => x.motionVectors.motionVectorsOpacity),
                motionVectorsResolution = FindSetting((Settings x) => x.motionVectors.motionVectorsResolution),
                motionVectorsAmplitude = FindSetting((Settings x) => x.motionVectors.motionVectorsAmplitude),
            };
        }