Class TrackingModeExtensions
Extensions for the TrackingMode and Feature
enums,
allowing conversion between the two.
Inherited Members
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 |
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 |
Returns
Type | Description |
---|---|
TrackingMode | The TrackingMode representation of |