I’m looking to create the floormesh array from a GLTF, but get the following error when trying to assign by name:
ERROR in src/BabylonExamples/LightsShadows.ts:65:51
TS2345: Argument of type ‘Nullable’ is not assignable to parameter of type ‘AbstractMesh’.
Type ‘null’ is not assignable to type ‘AbstractMesh’.
63 |
64 | // Add some floor tiles to the floorMesh for teleportation
65 | defaultXRExperience.teleportation.addFloorMesh(this.scene.getMeshByName(“FLOOR1”) );
|