Constructor XRAnchor
XRAnchor(TrackableId, Pose, TrackingState, IntPtr)
Constructs the session-relative data for an anchor. This is typically provided by an implementation of the XRAnchorSubsystem and not invoked directly.
Declaration
public XRAnchor(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | trackableId | The TrackableId associated with this anchor. |
Pose | pose | The |
TrackingState | trackingState | The TrackingState of the anchor. |
IntPtr | nativePtr | A native pointer associated with the anchor. The data pointed to by this pointer is implementation-specific. |
XRAnchor(TrackableId, Pose, TrackingState, IntPtr, Guid)
Constructs the session-relative data for anchor. This is typically provided by an implementation of the XRAnchorSubsystem and not invoked directly.
Declaration
public XRAnchor(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr, Guid sessionId)
Parameters
Type | Name | Description |
---|---|---|
TrackableId | trackableId | The TrackableId associated with this anchor. |
Pose | pose | The |
TrackingState | trackingState | The TrackingState of the anchor. |
IntPtr | nativePtr | A native pointer associated with the anchor. The data pointed to by this pointer is implementation-specific. |
Guid | sessionId | The session from which this anchor originated. |