In my project,i use gererated class on game start.
And in some other position, i need check a action state,so i use InputActionReference refer from InputActionAsset .
The problem is gererated class instance not use InputActionAsset scriptObject.
And there is no way to create an instance of the generated class via InputActionAsset scriptObject asset.
In game,there are not same inputaction.
InputActionReference’s action is not enable.
So, i need a constructor like this.
Then i can use same InputActionAsset scriptObject asset everywhere to resolve the problem.
1 Like
2023, still in TODO, no reviews on Pull Request…
xprezio
September 30, 2023, 2:01pm
4
Xprez.io – The ultimate Presentation Solution
system
September 30, 2023, 6:20pm
5
Unity rarely takes on pull requests. And the Input System team is notoriously unresponsive an slow on every level.
If you are interested, I have a solution to this problem, I wrote my own input codegen:
https://github.com/LurkingNinja/com.lurking-ninja.input-codegen
you will also need the codegen package as well in order this to work:
https://github.com/LurkingNinja/com.lurking-ninja.codegen
You can just install them in the package manager through the Install package from git url menu point.
Thanks for suggestions. Yea, I understand about no pull request answers, but it is in their own TODO comments, feel dump.
Thank you for links to your solution, but I wanna have actualized version of code generator safe for input system package updates.
There is way to fork package from Github needle, apply pull request there, and after package updates make git rebase.
But this is not easy way
Best way - that it would built-in. That’s I why wrote here