MagicLeapXrProviderNativeBindings
NameSpace: MagicLeap
Inherits from:
MagicLeapNativeBindings
Public Methods
ulong GetControllerTrackerHandle
public ulong GetControllerTrackerHandle()
ulong GetEyeTrackerHandle
public ulong GetEyeTrackerHandle()
ulong GetHandTrackerHandle
public ulong GetHandTrackerHandle()
ulong GetHeadTrackerHandle
public ulong GetHeadTrackerHandle()
ulong GetInputHandle
public ulong GetInputHandle()
MLResult.Code GetUnityPose
public MLResult.Code GetUnityPose(
MLCoordinateFrameUID cfuid,
out Pose pose
)
Parameters
Type | Name | Description |
---|---|---|
MLCoordinateFrameUID | cfuid | A unique identifier which represents a coordinate frame. The unique identifier is comprised of two values. |
out Pose | pose |
bool IsHeadTrackingAvailable
public bool IsHeadTrackingAvailable()
delegate void OnDebugMessageDelegate
Delegate describing the callback necessary to monitor when an debug message is received.
public delegate void OnDebugMessageDelegate(
LogLevel logLevel,
string message,
IntPtr context
)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | logLevel | The log level of the debug utils. |
string | message | The debug message. |
IntPtr | context | Pointer to a context object. |
void PredictSnapshot
public void PredictSnapshot(
long predictionTimestamp,
bool enableSnapshotPrediction
)
Parameters
Type | Name | Description |
---|---|---|
long | predictionTimestamp | |
bool | enableSnapshotPrediction |
void ResetSnapshotPrediction
public void ResetSnapshotPrediction()
MLResult.Code StartHapticsPattern
public MLResult.Code StartHapticsPattern(
uint eventType,
IntPtr buffer
)
Parameters
Type | Name | Description |
---|---|---|
uint | eventType | |
IntPtr | buffer |
MLResult.Code StopHaptics
public MLResult.Code StopHaptics()
Public Attributes
SettingsKey
public const string SettingsKey = "com.magicleap.unitysdk.settings";
Public Enums
LogLevel
Enumerator | Value | Description |
---|---|---|
Fatal | ||
Error | ||
Warning | ||
Info | ||
Debug | ||
Verbose |