エクスリマゲローディング
説明
このイベントは、検出画像のロードが開始されると、xrweb
によって発行されます。
imageloading.detail : { imageTargets: {name, type, metadata} }
プロパ ティ | 説明 |
---|---|
名称 | 画像の名前。 |
タイプ | FLAT'、'CYLINDRICAL' 、'CONICAL'`のいずれか。 |
メタデータ | ユーザーのメタデータ。 |
例
const componentMap = {}
const addComponents = ({detail}) => {
detail.imageTargets.forEach(({name, type, metadata}) => {
// ....
})
}
this.el.sceneEl.addEventListener('xrimageloading', addComponents)