index.js 439 B

123456789101112131415161718192021222324
  1. Component({
  2. behaviors: [require('../common/share-behavior').default],
  3. properties: {
  4. cubeAlpha: {
  5. type: Number,
  6. value: 1
  7. },
  8. sphereAlpha: {
  9. type: Number,
  10. value: 1
  11. },
  12. clearColor: {
  13. type: String,
  14. value: '0 0 0 0'
  15. }
  16. },
  17. lifetimes: {},
  18. methods: {
  19. handleReady({detail}) {
  20. const xrScene = this.scene = detail.value;
  21. console.log('xr-scene', xrScene);
  22. }
  23. }
  24. })