how can I export or import data in Uint8Array format when using wasm version? #203
-
When using the WebAssembly (wasm) version, how can I export or import navMesh and TileCache data in Uint8Array format? The code file being used is .packages/recast-navigation-wasm/dist/recast-navigation.wasm-compat.js. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi, You can find instructions for using There's also a storybook you can reference: https://github.com/isaac-mason/recast-navigation-js/blob/main/packages/recast-navigation/.storybook/stories/importing-and-exporting.stories.tsx If you're interested in how the internal |
Beta Was this translation helpful? Give feedback.
There's a related issue for letting users choose their wasm build, I'm not working on it right now though: #164
I'm hoping in future I can support something like this in user-land:
Also, I haven't tested what the performance is like with asmjs, but I suspect it will be very bad 🙂 just a warning.
Regarding your immediate issue, there's a few things we need to do to fix those entrypoints:
"types"
entry for typescript support@recast-navigation/core
) need to use atsconfig.json
module…