Как обратиться к потомкам объекта SkeletonLoader в Qt через QML?



  • Добрый день!
    Подскажите - как обратиться к отдельным потомкам объекта SkeletonLoader?
    Пример кода qml для проекта в Qt:

    Entity {
    id: root

    property Effect effect: texturedSkinnedPbrEffect
    property url source: ""
    property alias createJointsEnabled: skeleton.createJointsEnabled
    property alias transform: transform
    
    property alias textureBaseName: material.textureBaseName
    property alias textureBaseColor: material.textureBaseColor
    property alias baseColor: material.baseColor
    
    property alias rootJoint: skeleton.rootJoint
    property alias skeleton: skeleton
    
    
    
    components: [
        Transform {
            id: transform
    
        },
        Mesh {
            source: root.source
        },
        Armature {
            skeleton:
                SkeletonLoader {
                id: skeleton
                source: root.source
    
                onRootJointChanged: console.log("skeleton rootJoin: " + rootJoint)
                onStatusChanged:console.log("skeleton loader status: " + status)
                onJointCountChanged: console.log("skeleton has " + jointCount + " joints")
            }
    
    
    
        }
    

    ]
    }


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.