An open API service indexing awesome lists of open source software.

https://github.com/lloydevans/playcanvas-datgui

Some simple bindings between playcanvas and dat.gui for easily creating debug UI and interactive demos.
https://github.com/lloydevans/playcanvas-datgui

datgui game-development playcanvas webgl

Last synced: 7 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# playcanvas-datgui

![alt text](https://i.ibb.co/7Y7gZN4/playcanvas-datguipreview.gif "Preview")

See a live demo [here](https://playcanv.as/p/yvrjXeBc/).

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](https://www.npmjs.com/package/dat.gui).

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

`npm i -S playcanvas-datgui`

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