Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@babylonjs/gui

BabylonJS108.7kApache-2.08.3.1TypeScript support: included

Babylon.js GUI module

3D, javascript, html5, webgl, babylon.js

readme

Babylon.js GUI module

For usage documentation please visit https://doc.babylonjs.com/overviews/gui

Installation instructions

To install using npm :

npm install --save @babylonjs/core @babylonjs/gui

How to use

Afterwards it can be imported to your project using:

import { AdvancedDynamicTexture } from '@babylonjs/gui/2D';

And used as usual:

// Some awesome code
// Creates the post process
let postProcess = new AdvancedDynamicTexture("adt", 128, 128, scene);
// Some more awesome code

For more information you can have a look at our ES6 dedicated documentation.