(Obsolete) Localizes an anchor.
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:
bool: Whether localization was successful
UnboundAnchor: The anchor to bind
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. Deprecated
This method is obsolete. Use LocalizeAsync instead. To continue using the onComplete callback, use
OVRTask<T>.ContinueWith on the returned task.
ParametersonCompleteA delegate invoked when localization completes (which may fail). The delegate receives two arguments:
UnboundAnchor: The anchor to bind
bool: Whether localization was successful
timeoutThe timeout, in seconds, to attempt localization, or zero to indicate no timeout.
ExceptionsInvalidOperationExceptionThrown if
The anchor does not support localization, e.g., because it is invalid.
The anchor has already been localized.
The anchor is being localized, e.g., because Localize was previously called.