랭킹으로 돌아가기

Unity-Technologies/InputSystem

C#

An efficient and versatile input system for Unity.

inputeventsunitykeyboardmousetouchvrxrdevicesgamepad
스타 성장
스타
1.5k
포크
339
주간 성장
이슈
2
5001k1.5k
2017년 12월2020년 10월2023년 9월2026년 7월
README

Unity Input System (Package)

The Unity Input System package is an extension package to the Unity Platform which provides a system to configure game actions and access input devices to interact with Unity content. It is intended to be a more powerful, flexible, and configurable replacement to Unity Input API (the UnityEngine.Input class).

Prerequisites

The current version of the Input System requires Unity 2019 LTS, Unity 2020 LTS, Unity 2021 or Unity Beta (may be subject to instabilities) and included tooling to compile and run. The recommended way of installing Unity is via Unity Hub.

Getting Started

For instructions on how to get started using the Input System within Unity see Input System Manual - Installation.

Tutorials on how to use the Input System are available as part of:

  • Unity Learn - Using the Input System in Unity - Video tutorials on how to use the Input System in Unity.
  • Warriors Demo Project - A demo project illustrating a wide range of tools and features in the Input System, including local multi-player using different input methods.
  • Example projects part of this repository:
    • Custom Composite - Shows how to implement and register a custom InputBindingComposite.
    • Custom Device - Demonstrates how to add and author a custom device.
    • Custom Device Usages - An example of how to tag devices with custom "usages" and how to bind actions specifically to devices with only those usages.
    • Gamepad Mouse Cursor - An example of UI pointer navigation driven from gamepad input.
    • In-game Hints - Illustrates how to display text in the UI that involves action bindings as well as object interaction.
    • Input Recorder - Demonstrates how to use InputEventTrace and InputRecorder.
    • On-screen Controls - Demonstrates how to set up and use on-screen gamepad-like controls.
    • Rebinding UI - Demonstrates how to set up a rebinding UI to reconfigure bindings during run-time.
    • Simple Demo - Shows how to set up a simple character controller using actions, action asset as well as using the PlayerInput component.
    • Simple Multiplayer - Demonstrates a basic split-screen local multiplayer setup where players can join by pressing buttons on the supported devices to join the game.
    • UI vs Game Input - Illustrates how to handle input and resolve ambiguities that arise when overlaying UI elements in the game-view.
    • Visualizers - Provides various input data visualizations for common devices.

How to use a released versions of the package within a Unity project

All released versions of the Input System package are available via the Unity Package Manager, see Input System Manual - Installation for instructions how to fetch the package and compatible versions of samples and install them into your Unity project.

How to use the latest changes of the package in a Unity project

To test out the latest (unreleased) changes:

  1. Clone develop. The intention is to always keep the develop branch in a releasable state, but it reflects current development and may contain bugs or unexpected behavior that was not present in the latest released version.
  2. Add the local package to your project by following the steps described in Unity Manual - Installing a package from a local folder and select Packages/com.unity.inputsystem/package.json.
  1. Clone develop or the desired branch or release tag.
  2. Open the root folder of the repository in the Unity Editor. This way you have access to tests and samples that are excluded when importing only the package into another Unity project.

During development, run Input System automated tests by selecting Window > General > Test Runner to access the Test Runner and select Run All for PlayMode or EditMode tests.

Contribution & Feedback

This project is developed by Unity Technologies but welcomes user contributions and feedback.

If you have any feedback or questions about Unity's Input System, you are invited to join us on the Unity Forums.

If you want to contribute to the development of the Input System see CONTRIBUTIONS.md for additional information.

License

This package is distributed under the Unity Companion License for Unity-dependent projects license with addition of third party licenses which applies to the Assets/Samples/RebindingUI example project specifically.

관련 저장소
validatorjs/validator.js

String validation

JavaScriptnpmMIT Licensevalidationsanitization
23.7k2.5k
nosir/cleave.js

Format input text content when you are typing...

JavaScriptnpmApache License 2.0inputinput-mask
nosir.github.io/cleave.js
17.9k1.6k
selectize/selectize.js

Selectize is the hybrid of a textbox and <select> box. It's jQuery based, and it has autocomplete and native-feeling keyboard navigation; useful for tagging, contact lists, etc.

SCSSApache License 2.0tagginginput
selectize.dev
13k3.5k
x-extends/vxe-table

vxe table 支持 vue2, vue3 的表格解决方案

TypeScriptnpmMIT Licensevxe-tablevue
vxetable.cn
8.6k1.1k
jackocnr/intl-tel-input

For entering, formatting, and validating international telephone numbers. Available in vanilla JavaScript, or as React, Vue, Angular, and Svelte components.

TypeScriptnpmMIT Licenseinternational-telephonephone-number
intl-tel-input.com
8.2k2k
turanszkij/WickedEngine

3D engine with modern graphics

C++MIT Licensedirectx12vulkan
wickedengine.net
7.2k756
manifoldco/promptui

Interactive prompt for command-line applications

GoGo ModulesBSD 3-Clause "New" or "Revised" Licensegolangcommand-line
manifold.co
6.4k343
jaredreich/notie

🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies

JavaScriptnpmMIT Licensejavascriptnotifications
6.3k368
galacean/engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.

TypeScriptnpmMIT Licensewebgltypescript
galacean.com/engine
5.8k406
leongersen/noUiSlider

noUiSlider is a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support. It is fully GPU animated: no reflows, so it is fast; even on older devices. It also fits wonderfully in responsive designs and has no dependencies.

TypeScriptnpmMIT Licenserange-slidercomponent
refreshless.com/nouislider/
5.8k650
crossterm-rs/crossterm

Cross platform terminal library rust

Rustcrates.ioMIT Licensecross-platformterminal
4.2k385
univrsal/input-overlay

Show keyboard, gamepad and mouse input on stream

C++GNU General Public License v2.0obsplugin
4.1k300