Class DirectionButtonsGesture | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Class DirectionButtonsGesture

    Inheritance
    Object
    DirectionButtonsGesture
    Namespace: UnityEngine.Reflect.Controller.Gestures.Desktop
    Syntax
    public class DirectionButtonsGesture : IGesture

    Constructors

    DirectionButtonsGesture()

    Declaration
    public DirectionButtonsGesture()

    DirectionButtonsGesture(Action<Vector2>)

    Declaration
    public DirectionButtonsGesture(Action<Vector2> directionGiven)
    Parameters
    Type Name Description
    Action<Vector2> directionGiven

    Properties

    BackwardButtons

    Declaration
    public KeyCode[] BackwardButtons { get; set; }
    Property Value
    Type Description
    KeyCode[]

    ForwardButtons

    Declaration
    public KeyCode[] ForwardButtons { get; set; }
    Property Value
    Type Description
    KeyCode[]

    LeftButtons

    Declaration
    public KeyCode[] LeftButtons { get; set; }
    Property Value
    Type Description
    KeyCode[]

    Multiplier

    Declaration
    public Vector2 Multiplier { get; set; }
    Property Value
    Type Description
    Vector2

    NeededButtons

    Declaration
    public KeyCode[] NeededButtons { get; set; }
    Property Value
    Type Description
    KeyCode[]

    RightButtons

    Declaration
    public KeyCode[] RightButtons { get; set; }
    Property Value
    Type Description
    KeyCode[]

    Methods

    Update()

    Declaration
    public void Update()
    Implements
    IGesture.Update()

    Events

    directionGiven

    Declaration
    public event Action<Vector2> directionGiven
    Event Type
    Type Description
    Action<Vector2>
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX