Using babylon.accessibility in Typescript

I have added the package for @babylonjs/accessibility to my app

I have added “@babylonjs/accessibility” to my TSConfig types list.

It still does not find the type for BABYLON.accessibility to be able to call.


Please advise.

ping @carolhmj

This is probably an es6 version so you will need to import from it as you do from core :slight_smile:

Yep you need a different export for UMD, I have an example project with ES6 (using imports) here: GitHub - carolhmj/babylon-accessibility-example: Demonstrate a small usage example of the Babylon accessibility package, babylon-accessibility-example/loadModelAndEnv.ts at main · carolhmj/babylon-accessibility-example · GitHub

1 Like