Treat InputManager as AsyncEnumerable(IUniTaskAsyncEnumerable)
Add from GitHub
You can also add it directly from GitHub on Unity 2019.4+. Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.
- open Package Manager
- click +
- select Add from Git URL
- paste
https://github.com/euglenach/InputAsAsyncEnumerable.git
- click Add
Add from OpenUPM
To add OpenUPM to your project:
- open
Edit/Project Settings/Package Manager
- add a new Scoped Registry:
Name: OpenUPM
URL: https://package.openupm.com/
Scope(s): com.euglenach.inputasasyncenumerable
- click Save
- open Package Manager
- Select
My Registries
in dropdown top left - Select
InputAsAsyncEnumerable
and clickInstall
Add from OpenUPM CLI
Run the following command in a terminal.openupm add com.euglenach.inputasasyncenumerable