Class MagicLeapSessionSubsystem.SessionProvider
Inheritance
Inherited Members
Namespace: UnityEngine .XR.MagicLeap
Assembly: UnityEngine.XR.MagicLeap.dll
Syntax
public class MagicLeapSessionSubsystem.SessionProvider : XRSessionSubsystem.Provider
Constructors
SessionProvider()
Constructor for SessionProvider
Declaration
public SessionProvider()
Properties
currentTrackingMode
The current tracking mode feature flag.
Declaration
public override Feature currentTrackingMode { get; }
Property Value
Type | Description |
---|---|
Feature |
Overrides
Remarks
Magic Leap will always try to use 6DoF tracking but will automatically switch to
3DoF if it doesn't have a sufficient tracking environment. This will report which
of the two modes is currently active and
UnityEngine.XR.ARSubsystems.Feature.None
otherwise.
requestedFeatures
Magic Leap Requested Features
Declaration
public override Feature requestedFeatures { get; }
Property Value
Type | Description |
---|---|
Feature | Features requested for use at runtime |
Overrides
requestedTrackingMode
Get/Set the tracking mode of the device
Declaration
public override Feature requestedTrackingMode { get; set; }
Property Value
Type | Description |
---|---|
Feature |
Overrides
trackingState
Tracking state of the HMD
Declaration
public override TrackingState trackingState { get; }
Property Value
Type | Description |
---|---|
Tracking |
Tracking state status |
Overrides
Methods
Destroy()
Destroy/Dispose of the current Perception instance
Declaration
public override void Destroy()
Overrides
GetAvailabilityAsync()
Get the session's availability
Declaration
public override Promise<SessionAvailability> GetAvailabilityAsync()
Returns
Type | Description |
---|---|
Promise<Session |
Session availability promise |
Overrides
GetConfigurationDescriptors(Allocator)
Get the configuration of available feature descriptions
Declaration
public override NativeArray<ConfigurationDescriptor> GetConfigurationDescriptors(Allocator allocator)
Parameters
Type | Name | Description |
---|---|---|
Allocator | allocator |
Returns
Type | Description |
---|---|
Native |
Array of Configuration descriptors |
Overrides
Update(XRSessionUpdateParams, Configuration)
Update requested features
Declaration
public override void Update(XRSessionUpdateParams updateParams, Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
XRSession |
updateParams | |
Configuration | configuration |