Unity Input System Utilities
Unity Input System utilities for Unity 2022 LTS or higher.
com.audune.utils.inputsystem 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/inputsystem.git README Markdown
Copy this to your project's README.md
## Installation
Add **Unity Input System Utilities** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/inputsystem.git
```
[](https://www.pkglnk.dev/pkg/inputsystem)Dependencies (2)
README
Audune Unity Input System Utilities
This repository contains utility scripts for Unity's Input System package, used in Audune's own projects.
Features
- Get references to an input binding or a group of input bindings from an input action, which include their associated bindex, action and control scheme. Rebind references via scripting.
- Return all available control schemes in the input system, and optionally filter them to only include the most specific ones. Normalize control paths using those control schemes for easier rebinding.
- Convert binding referenes to their string representation, either in plain text or as TextMesh Pro sprites.
Installation
Requirements
This package depends on the following packages:
- Input System (Unity), version 1.5.0 or higher.
Installing from the OpenUPM registry
To install this package as a package from the OpenUPM registry in the Unity Editor, use the following steps:
- In the Unity editor, navigate to Edit ⺠Project Settings... ⺠Package Manager.
- Add the following Scoped Registry, or edit the existing OpenUPM entry to include the new Scope:
Name: package.openupm.com
URL: https://package.openupm.com
Scope(s): com.audune.utils.inputsystem
- Navigate to Window ⺠Package Manager.
- Click the + icon and click Add package by name...
- Enter the following name in the corresponding field and click Add:
com.audune.utils.inputsystem
Installing as a Git package
To install this package as a Git package in the Unity Editor, use the following steps:
- In the Unity editor, navigate to Window ⺠Package Manager.
- Click the + icon and click Add package from git URL...
- Enter the following URL in the URL field and click Add:
https://github.com/audunegames/inputsystem-utils.git
Usage
The package contains the following classes:
- The
BindingReferenceclass is a wrapper aroundUnity.InputSystem.InputBindingand also contains the associatedUnity.InputSystem.InputAction,Unity.InputSystem.InputControlSchemeand binding index. - The
BindingReferenceGroupclass is a wrapper aroundIEnumerable<Unity.InputSystem.InputBinding>and also contains the associatedUnity.InputSystem.InputAction,Unity.InputSystem.InputControlSchemeand part of composite name. - The
ControlSchemeReferenceclass is a wrapper aroundUnity.InputSystem.InputControlSchemeand contains the devices that are currently used by the control scheme. - The
InputActionUtilsclass contains extension methods for actions in the input system. - The
InputControlSchemeUtilsclass contains extension methods for control schemes in the input system. - The
InputDisplayUtilsclass contains extension methods for displaying bindings as strings. - The
TextMeshProSpriteclass is a convenient wrapper around a string containing rich text for a TextMeshPro sprite.
Contributing
Contributions to this package are more than welcome! Contributing can be done by making a pull request with your updated code.
License
This package is licensed under the GNU LGPL 3.0 license. See LICENSE.txt for more information.
No comments yet. Be the first!