XrSpatialAnchorListModel QML Type

Provides a model containing spatial anchors. 更多...

import 语句: import QtQuick3D.Xr
Since: Qt 6.8
继承:

ListModel

状态: 技术预览

详细描述

This type provides a list of spatial anchors, which are points in the physical world that can be tracked and associated with virtual content.

The list contains elements that have an anchor property with the type XrSpatialAnchor .

You can use it like this:

Repeater3D {
    model: XrSpatialAnchorListModel {
    }
    delegate: Node {
        required property XrSpatialAnchor anchor
        position: anchor.position
        rotation: anchor.rotation
        // Further use of anchor properties...
    }
}