1.0.1 • Published 4 years ago

playcanvas-datgui v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

playcanvas-datgui

alt text

See a live demo here.

Some simple bindings between playcanvas and dat.gui for easily creating debug UI and interactive demos.

Setup

With pre-built script

Include the dat.gui lib in your project by getting the source from here.

Then include build/umd/playcanvas-datgui.js and make sure it is loaded after the dat.gui.js script.

Add the component to an object in the scene and view the inspector properties for configuration info. You can also view an example here.

With es module

Import this module into your bundle and it will register itself as a script. It requires the dat.gui dependency.