Unity WebGL Calls Rust Wasm
(Jin Qing’s Column, May., 2023)
Reference: https://zenn.dev/ruccho/articles/261136f7bdb003
In this article, a Rust function is compiled into wasm, and then got called by the Unity WebGL.
Rust
Create Rust wasm project from wasm-pack template like this:
E:\temp\ttt2>cargo generate rustwasm/wasm-pack-template --name unity-wasm-example
⚠️ Favorite `rustwasm/wasm-pack-template` not found in config, using it as a git repository: https://github.com/rustwasm/wasm-pack-template.git
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)