Skip to content

Gui

轻量调试面板,安装后通过 app.$gui 访问。内置实现无需额外依赖(如需 lil-gui 完整功能,可替换内部实现)。

用法

ts
import { Guin } from '@threeuse/core/plugins'

app.use(Gui)
app.$gui.add(mesh.position, 'y').min(-5).max(5).step(0.1)
app.$gui.addFolder('Material').add(material, 'wireframe')

Demo

Released under the MIT License.