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

OVRAnchorContainer Struct

Extends 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.
The anchor container is part of the Meta Quest Scene Model. Read more at Scene Overview.

Static Fields

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

Properties

IsEnabled : bool
[Get]
True if this component is enabled and no change to its enabled status is pending.
Signature
bool IsEnabled
IsNull : bool
[Get]
Whether this object represents a valid anchor component.
Signature
bool IsNull
Uuids : Guid[]
[Get]
Uuids of the anchors contained by this Anchor Container.
Signature
Guid [] Uuids

Methods

Equals ( other )
Compares this component for equality with other .
Signature
bool Equals(OVRAnchorContainer other)
Parameters
other: OVRAnchorContainer  The other component to compare with.
Returns
bool  True if both components belong to the same OVRAnchor, otherwise false.
Equals ( obj )
Compares this component for equality with obj .
Signature
override bool Equals(object obj)
Parameters
obj: object  The object to compare with.
Returns
override bool  True if obj is an OVRAnchorContainer and Equals(OVRAnchorContainer) is true, otherwise false.
FetchAnchorsAsync ( anchors )
Fetches anchors contained by this Anchor Container.
Dispose of the returned OVRTask if you don't use the results
Signature
OVRTask< OVRResult< List< OVRAnchor >, OVRAnchor.FetchResult > > FetchAnchorsAsync(List< OVRAnchor > anchors)
Parameters
anchors: List< OVRAnchor >  List that will get cleared and populated with the requested anchors.
Returns
OVRTask< OVRResult< List< OVRAnchor >, OVRAnchor.FetchResult > >  Returns an OVRTask 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.
Throws
InvalidOperationException  If it fails to retrieve the Uuids ArgumentNullException  If parameter anchors is null
FetchChildrenAsync ( anchors )
(Obsolete) Asynchronous method that fetches anchors contained by this Anchor Container.
DeprecatedThis method is obsolete. Use FetchAnchorsAsync instead.
Dispose of the returned OVRTask<bool> if you don't use the results
Signature
OVRTask< bool > FetchChildrenAsync(List< OVRAnchor > anchors)
Parameters
anchors: List< OVRAnchor >  List that will get cleared and populated with the requested anchors.
Returns
OVRTask< bool >  Returns an OVRTask<bool> 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.
Throws
InvalidOperationException  If it fails to retrieve the Uuids ArgumentNullException  If parameter anchors is null
GetHashCode ()
Gets a hashcode suitable for use in a Dictionary or HashSet.
Signature
override int GetHashCode()
Returns
override int  A hashcode for this component.
ToString ()
Gets a string representation of this component.
Signature
override string ToString()
Returns
override string  A string representation of this component.

Static Methods

operator!= ( lhs , rhs )
Compares two components for inequality.
Signature
static bool operator!=(OVRAnchorContainer lhs, OVRAnchorContainer rhs)
Parameters
lhs: OVRAnchorContainer  The component to compare with rhs .
rhs: OVRAnchorContainer  The component to compare with lhs .
Returns
bool  True if the components do not belong to the same OVRAnchor, otherwise false.
operator== ( lhs , rhs )
Compares two components for equality.
Signature
static bool operator==(OVRAnchorContainer lhs, OVRAnchorContainer rhs)
Parameters
lhs: OVRAnchorContainer  The component to compare with rhs .
rhs: OVRAnchorContainer  The component to compare with lhs .
Returns
bool  True if both components belong to the same OVRAnchor, otherwise false.