Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navmesh plugin is not defined #60

Open
mistertoenails opened this issue Nov 4, 2022 · 0 comments
Open

Navmesh plugin is not defined #60

mistertoenails opened this issue Nov 4, 2022 · 0 comments

Comments

@mistertoenails
Copy link

mistertoenails commented Nov 4, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant