Esempio n. 1
0
            protected override void RegisterCallbacksOnTarget()
            {
                m_Slider = target.GetFirstOfType <VFXMinMaxSliderField>();

                target.RegisterCallback <MouseDownEvent>(OnMouseDown, TrickleDown.TrickleDown);
                target.RegisterCallback <MouseUpEvent>(OnMouseUp, TrickleDown.TrickleDown);
            }
Esempio n. 2
0
        protected INotifyValueChanged <Vector2> CreateSliderField(out VFXMinMaxSliderField slider)
        {
            var field = new VFXLabeledField <VFXMinMaxSliderField, Vector2>(m_Label);

            slider = field.control;
            slider.onValueDragFinished = ValueDragFinished;
            slider.onValueDragStarted  = ValueDragStarted;
            slider.RegisterCallback <BlurEvent>(OnFocusLost);
            return(field);
        }