Import JSBinding package to your project.
on Windows
1) for 32bit editor: copy Assets/Plugins/x86/mozjs-33.dll to UnityInstallDir/Editor folder
2) for 64bit editor: copy Assets/Plugins/x86_64/mozjs-33.dll to UnityInstallDir/Editor folder
- open scene JSBinding/Samples/Viewer
- click menu JSBinding | Generate JS and CS Bindings
- play the scene. There is a scene list, each scene represents a sample. Select one scene to play. Scenes ended with ‘_JS‘ are JavaScript version.
时间: 2024-10-19 15:33:00