Добрый день!
Подскажите - как обратиться к отдельным потомкам объекта SkeletonLoader?
Код qml для проекта в Qt:
import QtQuick 2.9
import custom 1.0
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")
}
}
]
}