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

    Class TouchPanGesture

    Inheritance
    Object
    TouchGesture
    TouchPanGesture
    Inherited Members
    TouchGesture.ComputeCentroid()
    TouchGesture.FromPixels(Vector2)
    Namespace: UnityEngine.Reflect.Controller.Gestures.Touch
    Syntax
    public class TouchPanGesture : TouchGesture, IGesture

    Constructors

    TouchPanGesture()

    Declaration
    public TouchPanGesture()

    TouchPanGesture(Action<Vector2>)

    Declaration
    public TouchPanGesture(Action<Vector2> onPan)
    Parameters
    Type Name Description
    Action<Vector2> onPan

    Properties

    DetectionThreshold

    Declaration
    public float DetectionThreshold { get; set; }
    Property Value
    Type Description
    Single

    FingersNumber

    Declaration
    public int FingersNumber { get; set; }
    Property Value
    Type Description
    Int32

    Multiplier

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

    Methods

    Update()

    Declaration
    public override void Update()
    Overrides
    TouchGesture.Update()

    Events

    onPan

    Declaration
    public event Action<Vector2> onPan
    Event Type
    Type Description
    Action<Vector2>

    onPanEnd

    Declaration
    public event Action onPanEnd
    Event Type
    Type Description
    Action

    onPanStart

    Declaration
    public event Action onPanStart
    Event Type
    Type Description
    Action
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX