Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

InputSystem binding errors #55

Open
lorenalexm opened this issue Sep 6, 2021 · 1 comment
Open

InputSystem binding errors #55

lorenalexm opened this issue Sep 6, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@lorenalexm
Copy link

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
Copy link
Owner

ialex32x commented Sep 8, 2021

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 ialex32x added the enhancement New feature or request label Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants