index.js 571 B

12345678910111213141516171819202122
  1. Component({
  2. behaviors: [require('../common/share-behavior').default],
  3. properties: {
  4. loaded: false
  5. },
  6. lifetimes: {},
  7. methods: {
  8. handleReady({detail}) {
  9. const xrScene = this.scene = detail.value;
  10. console.log('xr-scene', xrScene);
  11. },
  12. handleAssetsProgress: function({detail}) {
  13. this.triggerEvent('assetsProgress', detail.value);
  14. },
  15. handleAssetsLoaded: function({detail}) {
  16. this.triggerEvent('assetsLoaded', detail.value);
  17. },
  18. handleRaf: function({detail}) {
  19. console.log('raf', detail.value);
  20. }
  21. }
  22. })