Closed jo32 closed 2 years ago
Currently I added "UnityEngine.ParticleSystemModule" in implicitAssemblies in Prefs.cs
The recommended way is to add a BindingProcess sub-class for your project. Like what in the example: https://github.com/ialex32x/unity-jsb/blob/master/Assets/Examples/Source/Editor/CustomBinding.cs It gives more control than the configuration. It usually contains a bunch of unnecessary types and becomes a burden on the time consumption of packaging/compilation If exporting all types in specific assembly.
I trid to create ScriptRuntime to run example_monobehaviour.js provided in project.
However when I hit the line:
https://github.com/ialex32x/unity-jsb/blob/master/Scripts/out/example_monobehaviour.js#L162
It thows error because "UnityEngine_1.ParticleSystem" is undefined.
I noticed that UnityBinding.cs explicitly add some binding by default: https://github.com/ialex32x/unity-jsb/blob/master/Assets/jsb/Source/Unity/Editor/CustomBindings/UnityBinding.cs#L79
What is the recommended way to add ParticleSystem or other types to js runtime?