ialex32x / unity-jsb

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

InputSystem binding errors #55

Open lorenalexm opened 3 years ago

lorenalexm commented 3 years ago

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 the logs below. Is this an issue anyone has stumbled upon before, or are we "stuck" with the old Input system for now? Thank you!

Assets/Generated/OSX/UnityEngine_InputSystem_InputAction.cs(273,28): error CS0453: The type 'InputBinding?' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'Values.js_push_structvalue(JSContext, T)'

Assets/Generated/OSX/UnityEngine_InputSystem_InputAction.cs(1118,24): error CS0453: The type 'InputBinding?' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method 'Values.js_push_structvalue(JSContext, T)'

ialex32x commented 3 years ago

There are a few unsupported features of types (and members) need to be filtered out. I pushed a submission to filter out them minimally (not sure whether the generated code works correctly).