sqe-editer
v1.1.1
Published
基于 SQE(v1.0.x) 的场景编辑器,支持场景的导入导出,资源的管理与展示!
Downloads
21
Readme
sqe-editer
基于 SQE(v1.0.x) 的场景编辑器,支持场景的导入导出,资源的管理与展示!
Project explain
sqe-editer 是一个 webpack 插件,以 Vue 项目为例:
npm install sqe three -S npm install sqe-editer -D
vue.config.js 中引入并注册插件
module.exports = {
chainWebpack: (config) => {
config.plugin('sqe-editer').use(SqeEditer).tap(() => [
{ save: 'scene/index.json' }//开启保存功能并指定保存路径
])
}
}
- 运行项目,app.vue
import { World } from 'sqe'
const world = new World({})
world.start(document.getElementById('app'))