Closed exile-yy closed 2 years ago
依赖包 { "name": "vue-project", "version": "0.0.0", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview --port 4173" }, "dependencies": { "dat.gui": "^0.7.9", "gsap": "^3.11.3", "pinia": "^2.0.17", "three": "^0.143.0", "vue": "^3.2.37", "vue-3d-loader": "^2.1.0", "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", "vite": "^3.0.4" } } 页面代码
我下载之后载入glb模型添加autoPlay属性模型还是没有开启动画
请确保glb文件确实拥有动画属性
依赖包 { "name": "vue-project", "version": "0.0.0", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview --port 4173" }, "dependencies": { "dat.gui": "^0.7.9", "gsap": "^3.11.3", "pinia": "^2.0.17", "three": "^0.143.0", "vue": "^3.2.37", "vue-3d-loader": "^2.1.0", "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", "vite": "^3.0.4" } } 页面代码
确保安装的vue-3d-loader是当前最新2.1.2版本,另外经过我的测试,glb文件在2.1.2版本中autoPlay并无问题
依赖包 { "name": "vue-project", "version": "0.0.0", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview --port 4173" }, "dependencies": { "dat.gui": "^0.7.9", "gsap": "^3.11.3", "pinia": "^2.0.17", "three": "^0.143.0", "vue": "^3.2.37", "vue-3d-loader": "^2.1.0", "vue-router": "^4.1.3" }, "devDependencies": { "@vitejs/plugin-vue": "^3.0.1", "vite": "^3.0.4" } } 页面代码
确保安装的vue-3d-loader是当前最新2.1.2版本,另外经过我的测试,glb文件在2.1.2版本中autoPlay并无问题
谢谢 确实是版本问题
我下载之后载入glb模型添加autoPlay属性模型还是没有开启动画