I am a little lost on the use of async and await. I need to add my meshes to floormesh, usually like this:
defaultXRExperience.teleportation.addFloorMesh(this.scene.getMeshByName(“SM_TableFloor”) );
***But this doesn’t work within a promise like async CreateEnvironment(): Promise {
Specific error is:
TS2339: Property ‘teleportation’ does not exist on type ‘Promise’.
58 |
59 | // Add some floor tiles to the floorMesh for teleportation -R