docs.unity3d.com
Search Results for

    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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARFoundation
    Assembly: Unity.XR.ARFoundation.dll
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)