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

SpaceComponentType

SpaceComponentType

enum SpaceComponentType : Enum<Anchor.SpaceComponentType>
Defines the types of components that can be associated with a space/anchor.
Each component type provides different capabilities or information about the space. Components can be enabled or disabled using the scene.setSpaceComponentStatus method.

Entries

NameSummary
Locatable

Indicates the space can be located (positioned) in the physical environment.
Storable

Indicates the space can be stored persistently.
Sharable

Indicates the space can be shared with other devices/users.
Bounded2D

Indicates the space has a 2D boundary.
Bounded3D

Indicates the space has a 3D boundary.
SemanticLabels

Indicates the space has semantic labels describing what it represents.
RoomLayout

Indicates the space contains room layout information.
SpaceContainer

Indicates the space can contain other spaces.
TriangleMesh

Indicates the space has an associated triangle mesh.

Properties

NameSummary
name
val name: String
ordinal
val ordinal: Int
value
val value: Int

Integer value corresponding to the native OpenXR component type

Functions

NameSummary
valueOf
fun valueOf(value: String): Anchor.SpaceComponentType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<Anchor.SpaceComponentType>

Returns an array containing the constants of this enum type, in the order they’re declared.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon