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.

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 OVRSemanticLabels.Null

Properties

[Get]
Signature
ulong IOVRAnchorComponent<OVRSemanticLabels>. OVRSemanticLabels.Handle
IsEnabled : bool
[Get]
True if this component is enabled and no change to its enabled status is pending.
Signature
bool OVRSemanticLabels.IsEnabled
IsNull : bool
[Get]
Whether this object represents a valid anchor component.
Signature
bool OVRSemanticLabels.IsNull
Labels : string
[Get]
Semantic Labels.
Please use GetClassifications instead.
Signature
string OVRSemanticLabels.Labels
Type : SpaceComponentType IOVRAnchorComponent< OVRSemanticLabels >.
[Get]
Signature
SpaceComponentType IOVRAnchorComponent<OVRSemanticLabels>. OVRSemanticLabels.Type

Methods

Equals ( other )
Compares this component for equality with other .
Signature
bool OVRSemanticLabels.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 OVRSemanticLabels.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.
FromAnchor ( anchor )
Signature
OVRSemanticLabels IOVRAnchorComponent< OVRSemanticLabels >. OVRSemanticLabels.FromAnchor(OVRAnchor anchor)
Parameters
anchor: OVRAnchor
GetClassifications ( classifications )
Get the Semantic Labels.
Non-allocating.
Signature
void OVRSemanticLabels.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 OVRSemanticLabels.GetHashCode()
Returns
override int  A hashcode for this component.
SetEnabledAsync ( enabled , timeout )
Signature
OVRTask< bool > IOVRAnchorComponent< OVRSemanticLabels >. OVRSemanticLabels.SetEnabledAsync(bool enabled, double timeout)
Parameters
enabled: bool
timeout: double
ToString ()
Gets a string representation of this component.
Signature
override string OVRSemanticLabels.ToString()
Returns
override string  A string representation of this component.

Static Methods

operator!= ( lhs , rhs )
Compares two components for inequality.
Signature
static bool OVRSemanticLabels.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 OVRSemanticLabels.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