Class TouchPanGesture | Unity Reflect | 1.3.0-preview.104
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023