I have the scenes for my game being dynamically added at runtime when the world is generated, and the following game config:
var config = { type: Phaser.AUTO, width: 1260, height: 800, scene: [Loading], plugins: { global: [ { key: "navmesh", plugin: PhaserNavMeshPlugin, mapping: "navMeshPlugin", start: true, }, ], }, physics: { default: "arcade", arcade: { debug: false, }, }, render: { pixelArt: true, }, };
When I try to create a navmesh, it gives me this error: TypeError: Cannot read properties of undefined (reading 'buildMeshFromTilemap'). Any ideas for why this is happening?
I have the scenes for my game being dynamically added at runtime when the world is generated, and the following game config:
var config = { type: Phaser.AUTO, width: 1260, height: 800, scene: [Loading], plugins: { global: [ { key: "navmesh", plugin: PhaserNavMeshPlugin, mapping: "navMeshPlugin", start: true, }, ], }, physics: { default: "arcade", arcade: { debug: false, }, }, render: { pixelArt: true, }, };
When I try to create a navmesh, it gives me this error:TypeError: Cannot read properties of undefined (reading 'buildMeshFromTilemap')
. Any ideas for why this is happening?