const video = this.scene.assets.getAsset 为什么拿不到数据?
handleAssetsLoaded: function ({detail}) {
this.setData({loaded: true});
},
handleTrackerSwitch: function ({detail}) {
const active = detail.value;
const video = this.scene.assets.getAsset('video-texture', 'hikari');
active ? video.play() : video.stop();
}
使用console.log打印video是undefined wxml: <xr-asset-load type="video-texture" asset-id="hikari" id="dalian" src="xxxxx" options="loop:true,autoPlay:true,abortAudio:false" /> 测试机:IOS15 11PRO