index.js 508 B

1234567891011121314151617181920
  1. Component({
  2. behaviors: [require('../common/share-behavior').default],
  3. data: {
  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. console.log('assets progress', detail.value);
  14. },
  15. handleAssetsLoaded: function({detail}) {
  16. console.log('assets loaded', detail.value);
  17. this.setData({loaded: true});
  18. }
  19. }
  20. })