docs.unity3d.com
    Show / Hide Table of Contents

    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.

    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