protected bool CanStartManipulation(IMouseEvent e)
 {
     foreach (ManipulatorActivationFilter currentActivator in this.activators)
     {
         if (currentActivator.Matches(e))
         {
             this.m_currentActivator = currentActivator;
             return(true);
         }
     }
     return(false);
 }
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Experimental.UIElements.ManipulatorActivationFilter o;
         o = new UnityEngine.Experimental.UIElements.ManipulatorActivationFilter();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
        protected bool CanStartManipulation(IMouseEvent e)
        {
            foreach (var activator in activators)
            {
                if (activator.Matches(e))
                {
                    m_currentActivator = activator;
                    return(true);
                }
            }

            return(false);
        }
Пример #4
0
        protected bool CanStartManipulation(Event evt)
        {
            bool result;

            foreach (ManipulatorActivationFilter current in this.activators)
            {
                if (current.Matches(evt))
                {
                    this.m_currentActivator = current;
                    result = true;
                    return(result);
                }
            }
            result = false;
            return(result);
        }
        protected bool CanStartManipulation(IMouseEvent e)
        {
            if (MouseCaptureController.IsMouseCaptureTaken())
            {
                return(false);
            }

            foreach (var activator in activators)
            {
                if (activator.Matches(e))
                {
                    m_currentActivator = activator;
                    return(true);
                }
            }

            return(false);
        }
Пример #6
0
        protected bool CanStartManipulation(IMouseEvent e)
        {
            bool result;

            if (MouseCaptureController.IsMouseCaptureTaken())
            {
                result = false;
            }
            else
            {
                foreach (ManipulatorActivationFilter current in this.activators)
                {
                    if (current.Matches(e))
                    {
                        this.m_currentActivator = current;
                        result = true;
                        return(result);
                    }
                }
                result = false;
            }
            return(result);
        }