docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AxisEventData

    Event Data associated with Axis Events (Controller / Keyboard).

    Inheritance
    object
    AbstractEventData
    BaseEventData
    AxisEventData
    Inherited Members
    BaseEventData.currentInputModule
    BaseEventData.selectedObject
    AbstractEventData.m_Used
    AbstractEventData.Reset()
    AbstractEventData.Use()
    AbstractEventData.used
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.EventSystems
    Assembly: UnityEngine.UI.dll
    Syntax
    public class AxisEventData : BaseEventData

    Constructors

    AxisEventData(EventSystem)

    Declaration
    public AxisEventData(EventSystem eventSystem)
    Parameters
    Type Name Description
    EventSystem eventSystem

    Properties

    moveDir

    MoveDirection for this event.

    Declaration
    public MoveDirection moveDir { get; set; }
    Property Value
    Type Description
    MoveDirection

    moveVector

    Raw input vector associated with this event.

    Declaration
    public Vector2 moveVector { get; set; }
    Property Value
    Type Description
    Vector2
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)