docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum XrSpatialComponentTypeEXT

    Represents the types of components that can exist on a spatial entity. Provided by XR_EXT_spatial_entity.

    Namespace: UnityEngine.XR.OpenXR.NativeTypes
    Assembly: Unity.XR.OpenXR.dll
    Syntax
    public enum XrSpatialComponentTypeEXT

    Fields

    Name Description
    Anchor

    Represents the Anchor component type provided by XR_EXT_spatial_anchor. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_ANCHOR_EXT.

    Bounded2D

    Represents the Bounded 2D component type. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_BOUNDED_2D_EXT.

    Bounded3D

    Represents the Bounded 3D component type. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_BOUNDED_3D_EXT.

    Image2D

    Represents the Image 2D component type provided by XR_EXT_spatial_image_tracking. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_IMAGE_2D_EXT.

    Marker

    Represents the Marker component type provided by XR_EXT_spatial_marker_tracking. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_MARKER_EXT.

    Mesh2D

    Represents the Mesh 2D component type provided by XR_EXT_spatial_plane_tracking. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_MESH_2D_EXT.

    Mesh3D

    Represents the Mesh 3D component type. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_MESH_3D_EXT.

    Parent

    Represents the Parent component type. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_PARENT_EXT.

    Persistence

    Represents the Persistence component type provided by XR_EXT_spatial_persistence. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_PERSISTENCE_EXT.

    PlaneAlignment

    Represents the Plane Alignment component type provided by XR_EXT_spatial_plane_tracking. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_PLANE_ALIGNMENT_EXT.

    PlaneSemanticLabel

    Represents the Plane Semantic Label component type provided by XR_EXT_spatial_plane_tracking. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_PLANE_SEMANTIC_LABEL_EXT.

    Polygon2D

    Represents the Polygon 2D component type provided by XR_EXT_spatial_plane_tracking. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_POLYGON_2D_EXT.

    RaycastResult

    Represents the Raycast Result component type, which provides the pose of a raycast hit on an entity. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_RAYCAST_RESULT_ANDROID. Provided by XR_ANDROID_spatial_discovery_raycast.

    SubsumedByANDROID

    Represents the Subsumed By component type provided by XR_ANDROID_spatial_component_subsumed_by. Equivalent to the OpenXR value XR_SPATIAL_COMPONENT_TYPE_SUBSUMED_BY_ANDROID.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)