UnityEngine.SliderHandler.OnMouseDrag C# (CSharp) Method

OnMouseDrag() private method

private OnMouseDrag ( ) : float
return float
        private float OnMouseDrag()
        {
            if (GUIUtility.hotControl != this.id)
            {
                return this.currentValue;
            }
            UnityEngine.SliderState state = this.SliderState();
            if (!state.isDragging)
            {
                return this.currentValue;
            }
            GUI.changed = true;
            this.CurrentEvent().Use();
            float num2 = this.MousePosition() - state.dragStartPos;
            float num3 = state.dragStartValue + (num2 / this.ValuesPerPixel());
            return this.Clamp(num3);
        }