docs.unity3d.com
    Show / Hide Table of Contents

    Struct MagnificationGesture

    A magnification gesture received from a magic trackpad.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.AppUI.Core
    Syntax
    public struct MagnificationGesture : IEquatable<MagnificationGesture>

    Constructors

    MagnificationGesture(Single, TouchPhase)

    Constructor.

    Declaration
    public MagnificationGesture(float deltaMagnification, TouchPhase phase)
    Parameters
    Type Name Description
    Single deltaMagnification

    The magnification delta of the gesture since the last frame.

    TouchPhase phase

    The phase of the gesture.

    Properties

    deltaMagnification

    The magnification delta of the gesture since the last frame.

    Declaration
    public readonly float deltaMagnification { get; }
    Property Value
    Type Description
    Single

    phase

    The phase of the gesture.

    Declaration
    public readonly TouchPhase phase { get; }
    Property Value
    Type Description
    TouchPhase

    scrollDelta

    The scroll delta of the gesture since the last frame.

    Declaration
    public readonly Vector2 scrollDelta { get; }
    Property Value
    Type Description
    Vector2
    Remarks

    This is a convenience property to convert the magnification delta to a scroll delta.

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(MagnificationGesture)

    Declaration
    public bool Equals(MagnificationGesture other)
    Parameters
    Type Name Description
    MagnificationGesture other
    Returns
    Type Description
    Boolean
    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(MagnificationGesture, MagnificationGesture)

    Declaration
    public static bool operator ==(MagnificationGesture left, MagnificationGesture right)
    Parameters
    Type Name Description
    MagnificationGesture left
    MagnificationGesture right
    Returns
    Type Description
    Boolean

    Inequality(MagnificationGesture, MagnificationGesture)

    Declaration
    public static bool operator !=(MagnificationGesture left, MagnificationGesture right)
    Parameters
    Type Name Description
    MagnificationGesture left
    MagnificationGesture right
    Returns
    Type Description
    Boolean
    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