<xr-scene ar-system="modes:Face;camera:{{direction}}" bind:ready="handleReady" bind:tick="handleTick">
<xr-assets bind:loaded="handleAssetsLoaded">
<xr-asset-load type="gltf" asset-id="mask" src="{{img}}" />
</xr-assets>
<xr-env env-data="xr-frame-team-workspace-day" />
<xr-light type="ambient" color="1 1 1" intensity="1" />
<xr-light type="directional" rotation="40 70 0" color="1 1 1" intensity="3" />
<xr-ar-tracker mode="Face" auto-sync="43">
<xr-gltf model="mask" rotation="0 180 0" scale="0.5 0.5 0.5" />
</xr-ar-tracker>
<xr-camera clear-color="0.4 0.8 0.6 1" background="ar" is-ar-camera />
</xr-scene>
把camera属性改成动态绑定direction,但是动态修改direction的值,摄像头方向没有变化
direction: 'Front',// Back
https://developers.weixin.qq.com/miniprogram/dev/framework/xr-frame/#%E8%AF%86%E5%88%AB%E4%BA%BA%E8%84%B8%EF%BC%8C%E7%BB%99%E8%87%AA%E5%B7%B1%E6%88%B4%E4%B8%AA%E9%9D%A2%E5%85%B7:~:text=%E6%94%B9-,%E4%B8%BA%E4%BA%86,%E5%B1%9E%E6%80%A7,-%E4%B8%BA
您好,解决了吗