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

InputSystem binding errors

Open lorenalexm opened this issue 4 years ago • 1 comments

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<T>(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<T>(JSContext, T)'

lorenalexm avatar Sep 06 '21 14:09 lorenalexm

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).

ialex32x avatar Sep 08 '21 21:09 ialex32x