收藏
回答

xrScene为什么无法监听tap点击?

    sceneloaded(event){

      const xrScene = this.scene = event.detail.value; 

    },


    handleSceneTap(e) {

      console.log("XR 场景被单击", e);

      if (this.GltfTransform) {

        wx.showToast({ title: "模型被单击" });

      }

    },

      Ready() {

      this.scene.event.remove('tap', this.handleSceneTap);

      this.scene.event.add('tap', this.handleSceneTap.bind(this));

      }

回答关注问题邀请回答
收藏
登录 后发表内容