unity-jsb icon indicating copy to clipboard operation
unity-jsb copied to clipboard

It brings Javascript runtime capability to Unity3D by integrating QuickJS.

Results 16 unity-jsb issues
Sort by recently updated
recently updated
newest added

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?

Error when opening and running a project from the master branch of the repository. macOS 12.3.1 (21E258) Unity 2021.3.1f1 ``` DllNotFoundException: quickjs assembly: type: member:(null) QuickJS.Native.JSApi..cctor () (at Packages/cc.starlessnight.unity-jsb/Source/Native/JSApi.cs:711) Rethrow...

I wrote a test file like: ``` using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using UnityEngine; using QuickJS.Native; public class TestBehaviourScript : MonoBehaviour { // Start is...

improvement

When importing the new Unity `InputSystem` package into a project with unity-jsb and generating the bindings and type definitions, two errors are thrown around the `InputBinding?` type. I have attached...

enhancement

I wrote some code like: ``` var promise = new TypedScriptPromise(sc); System.Action callback = (object o) => { promise.Resolve(JSApi.JS_NULL); }; ``` and it crashed on this line: https://github.com/ialex32x/unity-jsb/blob/master/Assets/jsb/Source/ScriptRuntime.cs#L611

bug

I'm using GitHub Actions (Linux agent) and the [Game-CI](https://game.ci/docs/docker/docker-images) docker image (Linux based) to build a Unity app that has Unity JSB. I am targeting Stand Alone Windows x64 and...

enhancement

I have had a bit more time to explore _unity-jsb_, and have stumbled upon a place where I can initialize the runtime and receive `Awake` and `OnEnable` calls to my...

bug

Hi! I would like to know how to build QuickJs within UnityJsb on Windows. I went into `jsb_build/quickjs` and run `. make_jsb_win.sh` unfortunately I am getting errors: ``` CMake Error:...

I found this useful to control whether my `CustomBinding` was run after the UnityBindings. Without this, I believe the order is non-deterministic.

With jsb.Editor.UnityBinding enabled, the generated bindings produce ```c# public static ClassDecl Bind(TypeRegister register) { var cls = register.CreateClass("ScriptableObject", typeof(UnityEngine.ScriptableObject), QuickJS.Binding.CommonFix.CrossBindConstructor); cls.AddMethod(true, "CreateInstance", QuickJS.Unity.ScriptableObjectFix.BindStatic_CreateInstance); return cls; } ``` However, this method...