docs.unity3d.com
    目次を表示する/隠す

    Struct TouchHistory

    A fixed-size buffer of Touch records used to trace the history of touches.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.EnhancedTouch
    Syntax
    public struct TouchHistory : IReadOnlyList<Touch>, IReadOnlyCollection<Touch>, IEnumerable<Touch>, IEnumerable
    Remarks

    This struct provides access to a recorded list of touches.

    Properties

    Count

    Number of history records available.

    Declaration
    public readonly int Count { get; }
    Property Value
    Type Description
    Int32
    Implements
    IReadOnlyCollection<T>.Count

    Item[Int32]

    Return a history record by index. Indexing starts at 0 == newest to Count - 1 == oldest.

    Declaration
    public readonly Touch this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index

    Index of history record.

    Property Value
    Type Description
    Touch
    Implements
    IReadOnlyList<T>.Item[Int32]
    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    index is less than 0 or >= Count.

    Methods

    GetEnumerator()

    Enumerate touches in the history. Goes from newest records to oldest.

    Declaration
    public IEnumerator<Touch> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Touch>

    Enumerator over the touches in the history.

    Implements
    IEnumerable<T>.GetEnumerator()

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator
    Implements
    IEnumerable.GetEnumerator()
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)