Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MouseMoveEvent

This event is sent when the mouse moves.
Read time 3 minutesLast updated 5 days ago

Definition

public class MouseMoveEvent : MouseEventBase<MouseMoveEvent>, IDisposable, IMouseEvent

Remarks

The mouse move event is sent to the visual element under the current mouse position whenever the mouse position has changed. A MouseMoveEvent uses the default mouse event propagation path: it trickles down, bubbles up and can be cancelled. Disabled elements receive this event by default.

Constructors

Constructor

Description

MouseMoveEvent()Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances.

Methods

Method

Description

InitResets the event members to their initial values.

Static Methods

Method

Description

GetPooledGets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use
Dispose()
to release them.

Inheritance