Browse Source

Add groundBuilder's import (#8522)

If we just copy&run the example without import the groundBuilder that will throw MeshBuilder exception.
venorie 5 years ago
parent
commit
4b5dfd2ad7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      readme-es6.md

+ 1 - 0
readme-es6.md

@@ -55,6 +55,7 @@ import "@babylonjs/core/Materials/standardMaterial";
 // Side-effects only imports allowing Mesh to create default shapes (to enhance tree shaking, the construction methods on mesh are not available if the meshbuilder has not been imported).
 import "@babylonjs/core/Meshes/Builders/sphereBuilder";
 import "@babylonjs/core/Meshes/Builders/boxBuilder";
+import "@babylonjs/core/Meshes/Builders/groundBuilder";
 
 const canvas = document.getElementById("renderCanvas") as HTMLCanvasElement;
 const engine = new Engine(canvas);