let object = TE.scene.getObjectByName(channel.modelName);
if (object) {
let position = object.position.clone();
const box = new THREE.Box3().setFromObject(object);
const boxSize = box.getSize(new THREE.Vector3());
position.y = position.y + boxSize.y / 2 + 0.1;
position.z = position.z + 0.1;
let tag = TE.createTag({
html: channel.channelValues ? `<div class="tag-container">${channel.channelValues}</div >` : "关闭",
className: "",
position: new THREE.Vector3(0, 0, 0) || position,
});
object.add(tag);
}
The tag position changes when scrolling.