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

    Class TrackingModeExtensions

    Extensions for the TrackingMode and Feature enums, allowing conversion between the two.

    Inheritance
    Object
    TrackingModeExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARFoundation
    Syntax
    public static class TrackingModeExtensions

    Methods

    ToFeature(TrackingMode)

    Converts a TrackingMode to a UnityEngine.XR.ARSubsystems.Feature.

    Declaration
    public static Feature ToFeature(this TrackingMode self)
    Parameters
    Type Name Description
    TrackingMode self

    The TrackingMode being extended.

    Returns
    Type Description
    Feature

    A Feature with the appropriate tracking mode bits set.

    ToTrackingMode(Feature)

    Converts a UnityEngine.XR.ARSubsystems.Feature to a TrackingMode.

    Declaration
    public static TrackingMode ToTrackingMode(this Feature self)
    Parameters
    Type Name Description
    Feature self

    The Feature being extended.

    Returns
    Type Description
    TrackingMode

    The TrackingMode representation of self.

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