Guid | Uuid[Get] The universally unique identifier associated with this anchor. |
bool | Localized[Get] Whether the anchor has been localized. |
bool | Localizing[Get] Whether the anchor is in the process of being localized. |
Pose | Pose[Get] The world space pose of the spatial anchor. |
OVRTask< bool > | LocalizeAsync ( double timeout ) Localizes an anchor. |
void | BindTo ( OVRSpatialAnchor spatialAnchor ) Binds an unbound anchor to an OVRSpatialAnchor component. |
void | Localizes an anchor. |
Guid OVRSpatialAnchor.UnboundAnchor.Uuid |
---|
The universally unique identifier associated with this anchor. |
bool OVRSpatialAnchor.UnboundAnchor.Localized |
---|
Whether the anchor has been localized. Prior to localization, the anchor's Pose cannot be determined. See Also: Localized, Localizing |
bool OVRSpatialAnchor.UnboundAnchor.Localizing |
---|
Whether the anchor is in the process of being localized. See Also: Localized, Localize |
Pose OVRSpatialAnchor.UnboundAnchor.Pose |
---|
The world space pose of the spatial anchor. |
OVRTask< bool > OVRSpatialAnchor.UnboundAnchor.LocalizeAsync ( double timeout ) |
---|
Localizes an anchor. The delegate supplied to OVRSpatialAnchor.LoadUnboundAnchorsAsync receives an array of unbound spatial anchors. You can choose whether to localize each one and be notified when localization completes. Upon successful localization, your delegate should instantiate an OVRSpatialAnchor, then bind the UnboundAnchor to the OVRSpatialAnchor by calling UnboundAnchor.BindTo. Once an UnboundAnchor is bound to an OVRSpatialAnchor, it cannot be used again; that is, it cannot be bound to multiple OVRSpatialAnchor components. Parameters timeout The timeout, in seconds, to attempt localization, or zero to indicate no timeout. Returns An OVRTask<TResult> with a boolean type parameter indicating the success of the localization. Exceptions InvalidOperationException Thrown if the anchor does not support localization, e.g., because it is invalid. |
void OVRSpatialAnchor.UnboundAnchor.BindTo ( OVRSpatialAnchor spatialAnchor ) |
---|
Binds an unbound anchor to an OVRSpatialAnchor component. Use this to bind an unbound anchor to an OVRSpatialAnchor. After BindTo is used to bind an UnboundAnchor to an OVRSpatialAnchor, the UnboundAnchor is no longer valid; that is, it cannot be bound to another OVRSpatialAnchor. Parameters spatialAnchor The component to which this unbound anchor should be bound. Exceptions InvalidOperationException Thrown if this UnboundAnchor does not refer to a valid anchor. ArgumentNullExceptionThrown if spatialAnchor is null. ArgumentExceptionThrown if an anchor is already bound to spatialAnchor . ArgumentExceptionThrown if spatialAnchor is pending creation (see OVRSpatialAnchor.PendingCreation). InvalidOperationExceptionThrown if this UnboundAnchor is already bound to an OVRSpatialAnchor. |
void OVRSpatialAnchor.UnboundAnchor.Localize ( Action< UnboundAnchor, bool > onComplete, double timeout ) |
---|
Localizes an anchor. NOTE: This method is obsolete. Use LocalizeAsync instead. To continue using the onComplete callback, use OVRTask<T>.ContinueWith on the returned task. The delegate supplied to OVRSpatialAnchor.LoadUnboundAnchors receives an array of unbound spatial anchors. You can choose whether to localize each one and be notified when localization completes. The onComplete delegate receives two arguments:
Upon successful localization, your delegate should instantiate an OVRSpatialAnchor, then bind the UnboundAnchor to the OVRSpatialAnchor by calling UnboundAnchor.BindTo. Once an UnboundAnchor is bound to an OVRSpatialAnchor, it cannot be used again; that is, it cannot be bound to multiple OVRSpatialAnchor components. Parameters onComplete A delegate invoked when localization completes (which may fail). The delegate receives two arguments: timeout
The timeout, in seconds, to attempt localization, or zero to indicate no timeout. Exceptions InvalidOperationException Thrown if
|