babylonjs-toolkit
v8.40.1
Published
Babylon Toolkit Runtime Library (UMD)
Downloads
645
Maintainers
Readme
Classic Edition
The Babylon Toolkit is a runtime library extension for BabylonJS development that provides modern programming mechanics with a familiar Unity like scripting model to fast track native web game development.
We recommend using the modern ES6 supported edition
Next Edition (ES6) Browser Library (CDN) Demo React Project (TSX)
Basic Installation
npm install babylonjs-toolkitDefault Installation (UMD)
npm install babylonjs babylonjs-gui babylonjs-loaders babylonjs-materials babylonjs-toolkit- Global Import Side Effects (main.ts)
import 'babylonjs';
import 'babylonjs-gui';
import 'babylonjs-loaders';
import 'babylonjs-materials';
import 'babylonjs-toolkit';- TypeScript Configuration Settings (tsconfig.json)
"types": [
"babylonjs",
"babylonjs-gui",
"babylonjs-loaders",
"babylonjs-gltf2interface",
"babylonjs-materials",
"babylonjs-toolkit"
]Note: The BABYLON and TOOLKIT namespaces are globally accessible. Navigation is now bundled within the toolkit.
Navigation Mesh And Pathfinding (Navigation)
Access Navigation from the babylon-toolkit:
TOOLKIT.NavigationOr access Navigation from the global window:
window.NavigationOr access Navigation using shorthand globals:
Navigation;