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

OVRSemanticLabels Struct

Extends IEquatable< OVRSemanticLabels >
Descriptive labels of the OVRAnchor, as a list of enum values.
This component can be accessed from an OVRAnchor that supports it by calling OVRAnchor.GetComponent<T> from the anchor.
The semantic labels comonent is part of the Meta Quest Scene Model. Read more at Scene Overview.

Static Fields

Null : readonly OVRSemanticLabels
A null representation of an OVRSemanticLabels.
Use this to compare with another component to determine whether it is null.
Signature
readonly OVRSemanticLabels 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
Labels : string
[Get]
DeprecatedSemantic Labels. Please use GetClassifications instead.
Signature
string Labels

Methods

Equals ( other )
Compares this component for equality with other .
Signature
bool Equals(OVRSemanticLabels other)
Parameters
other: OVRSemanticLabels  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 OVRSemanticLabels and Equals(OVRSemanticLabels) is true, otherwise false.
GetClassifications ( classifications )
Get the Semantic Labels.
Non-allocating.
Signature
void GetClassifications(ICollection< Classification > classifications)
Parameters
classifications: ICollection< Classification >
Returns
void
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!=(OVRSemanticLabels lhs, OVRSemanticLabels rhs)
Parameters
lhs: OVRSemanticLabels  The component to compare with rhs .
rhs: OVRSemanticLabels  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==(OVRSemanticLabels lhs, OVRSemanticLabels rhs)
Parameters
lhs: OVRSemanticLabels  The component to compare with rhs .
rhs: OVRSemanticLabels  The component to compare with lhs .
Returns
bool  True if both components belong to the same OVRAnchor, otherwise false.

Inner Enum

Classification Enum

An enum that contains all possible classification values.

Enumeration Constants

MemberValue
Floor
0
Ceiling
1
WallFace
2
Table
3
Couch
4
DoorFrame
5
WindowFrame
6
Other
7
Storage
8
Bed
9
Screen
10
Lamp
11
Plant
12
WallArt
13
SceneMesh
14
InvisibleWallFace
15
Unknown
17
InnerWallFace
18