Class MouseManipulator
MouseManipulators have a list of activation filters.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public abstract class MouseManipulator : Manipulator, IManipulator
Constructors
MouseManipulator()
Declaration
protected MouseManipulator()
Properties
activators
List of Activationfilters.
Declaration
public List<ManipulatorActivationFilter> activators { get; }
Property Value
Type | Description |
---|---|
List<ManipulatorActivationFilter> |
Methods
CanStartManipulation(IMouseEvent)
Checks whether MouseEvent satisfies all of the ManipulatorActivationFilter requirements.
Declaration
protected bool CanStartManipulation(IMouseEvent e)
Parameters
Type | Name | Description |
---|---|---|
IMouseEvent | e | The MouseEvent to validate. |
Returns
Type | Description |
---|---|
Boolean | True if the event satisfies the requirements. False otherwise. |
CanStopManipulation(IMouseEvent)
Checks whether the MouseEvent is related to this Manipulator.
Declaration
protected bool CanStopManipulation(IMouseEvent e)
Parameters
Type | Name | Description |
---|---|---|
IMouseEvent | e | MouseEvent to validate. |
Returns
Type | Description |
---|---|
Boolean | True if MouseEvent uses the current activator button. False otherwise. |