Class NavigationMoveEvent
Event typically sent when the user presses the D-pad, moves a joystick or presses the arrow keys.
Inheritance
NavigationMoveEvent
Inherited Members
EventBase<NavigationMoveEvent>.TypeId()
EventBase<NavigationMoveEvent>.GetPooled()
EventBase<NavigationMoveEvent>.Dispose()
EventBase<NavigationMoveEvent>.eventTypeId
EventBase.PreDispatch()
EventBase.PreDispatch(IPanel)
EventBase.PostDispatch()
EventBase.PostDispatch(IPanel)
Namespace: Unity.UIElements.Runtime
Assembly: solution.dll
Syntax
public class NavigationMoveEvent : NavigationEventBase<NavigationMoveEvent>, IDisposable, INavigationEvent
Constructors
| Name | Description |
|---|---|
| NavigationMoveEvent() | Constructor. |
Properties
| Name | Description |
|---|---|
| direction | The direction of the navigation. |
| move | The move vector. |
Methods
| Name | Description |
|---|---|
| GetPooled(Vector2) | Gets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained from this method should be released back to the pool using Dispose(). |
| Init() | Resets all event members to their initial values. |