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

OVRAnchorContainer Struct

Extends IOVRAnchorComponent< OVRAnchorContainer >, IEquatable< OVRAnchorContainer >
Represents a container for other OVRAnchors.
This component can be accessed from an OVRAnchor that supports it by calling OVRAnchor.GetComponent<T> from the anchor.s

Properties

SpaceComponentType IOVRAnchorComponent< OVRAnchorContainer >. Type[Get]
Whether this object represents a valid anchor component.
True if this component is enabled and no change to its enabled status is pending.
SpaceComponentType Type[Get]
ulong Handle[Get]
Uuids of the anchors contained by this Anchor Container.
See Also
OVRAnchor.FetchAnchorsAsync(System.Collections.Generic.IEnumerable<System.Guid>,System.Collections.Generic.IList<OVRAnchor>,OVRSpace.StorageLocation,double)
Exceptions
InvalidOperationException
If it fails to retrieve the Uuids, which could happen if the component is not supported or enabled.

Public Statics

A null representation of an OVRAnchorContainer.
Use this to compare with another component to determine whether it is null.

Member Functions

OVRTask< bool > IOVRAnchorComponent< OVRAnchorContainer >. SetEnabledAsync
( bool enabled,
double timeout )
Compares this component for equality with other .
Parameters
other
The other component to compare with.
Returns
True if both components belong to the same OVRAnchor, otherwise false.
Compares this component for equality with obj .
Parameters
obj
The object to compare with.
Returns
True if obj is an OVRAnchorContainer and Equals(OVRAnchorContainer) is true, otherwise false.
Gets a hashcode suitable for use in a Dictionary or HashSet.
Returns
A hashcode for this component.
Gets a string representation of this component.
Returns
A string representation of this component.
(Obsolete) Asynchronous method that fetches anchors contained by this Anchor Container.
Dispose of the returned OVRTask<T> if you don't use the results
Parameters
anchors
List that will get cleared and populated with the requested anchors.
Deprecated
This method is obsolete. Use FetchAnchorsAsync instead.
Returns
An OVRTask<T> that will eventually let you test if the fetch was successful or not. If the result is true, then the anchors parameter has been populated with the requested anchors.
Exceptions
InvalidOperationException
If it fails to retrieve the Uuids
ArgumentNullException
If parameter anchors is null
Fetches anchors contained by this Anchor Container.
Dispose of the returned OVRTask<T> if you don't use the results
Parameters
anchors
List that will get cleared and populated with the requested anchors.
Returns
An OVRTask<T> that will eventually let you test if the fetch was successful or not. If the result is true, then the anchors parameter has been populated with the requested anchors.
Exceptions
InvalidOperationException
If it fails to retrieve the Uuids
ArgumentNullException
If parameter anchors is null

Static Member Functions

Compares two components for equality.
Parameters
lhs
The component to compare with rhs .
rhs
The component to compare with lhs .
Returns
True if both components belong to the same OVRAnchor, otherwise false.
Compares two components for inequality.
Parameters
lhs
The component to compare with rhs .
rhs
The component to compare with lhs .
Returns
True if the components do not belong to the same OVRAnchor, otherwise false.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon