ialex32x / unity-jsb

It brings Javascript runtime capability to Unity3D by integrating QuickJS.
MIT License
333 stars 40 forks source link

Modding Engine #85

Open filharvey opened 2 years ago

filharvey commented 2 years ago

If I wanted to use unity-jsb as a modding engine for a game, how can I restrict how much of unity is exposed to the JS / TS?

ialex32x commented 2 years ago

You could implement your own IBindingProcess to define which types are available in JS/TS (and how they are being accessed). There is an example: jsb_build/dotnetcore/CustomBinding.cs.