API reference
API reference
Select your platform
No SDKs available
No versions available

LoadOptions Struct

Options for loading unbound spatial anchors used by OVRSpatialAnchor.LoadUnboundAnchorsAsync.

Overview

Static Fields

static const int
The maximum number of uuids that may be present in the Uuids collection.

Properties

The storage location from which to query spatial anchors.
int
(Obsolete) The maximum number of anchors to query.
double
Timeout[Get]
The timeout, in seconds, for the query operation.
IReadOnlyList< Guid >
Uuids[Get]
The set of spatial anchors to query, identified by their UUIDs.

Details

Detailed Description

This example shows how to create LoadOptions for loading anchors when given a set of UUIDs.
OVRSpatialAnchor.LoadOptions options = new OVRSpatialAnchor.LoadOptions
{
Timeout = 0,
Uuids = savedAnchorUuids
};

Public Statics

const int OVRSpatialAnchor.LoadOptions.MaxSupported
The maximum number of uuids that may be present in the Uuids collection.

Properties

OVRSpace.StorageLocation OVRSpatialAnchor.LoadOptions.StorageLocation
The storage location from which to query spatial anchors.
int OVRSpatialAnchor.LoadOptions.MaxAnchorCount
(Obsolete) The maximum number of anchors to query.
In prior SDK versions, it was mandatory to set this property to receive any results. However, this property is now obsolete. If MaxAnchorCount is zero, i.e., the default initialized value, it will automatically be set to the count of Uuids.
If non-zero, the number of anchors in the result will be limited to MaxAnchorCount, preserving the previous behavior.
double OVRSpatialAnchor.LoadOptions.Timeout
The timeout, in seconds, for the query operation.
A value of zero indicates no timeout.
IReadOnlyList<Guid> OVRSpatialAnchor.LoadOptions.Uuids
The set of spatial anchors to query, identified by their UUIDs.
The UUIDs are copied by the OVRSpatialAnchor.LoadUnboundAnchorsAsync method and no longer referenced internally afterwards.
You must supply a list of UUIDs. OVRSpatialAnchor.LoadUnboundAnchorsAsync will throw if this property is null.
Exceptions
System.ArgumentException
Thrown if Uuids contains more than MaxSupported elements.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon