Other

项目介绍

Unity-Technologies/InputSystem 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 Other 许可证,目前获得 1.5k 个 Star、340 次 Fork。

仓库全名
Unity-Technologies/InputSystem
开源许可证
Other
Star 数
1.5k
Fork 数
340
未关闭 Issue
3

README 摘要

Unity Input System (Package) [!IMPORTANT] Starting with Unity 6.7, Input System development has moved to an internal Unity repository. This repository is now in maintenance mode: only fixes for critical bugs and issues that cause high user pain are backported here. See CONTRIBUTIONS.md for how to report bugs and share feedback. The Unity Input System package is an extension package to the Unity Platform which…

完整内容见 GitHub 原始 README 或本页 。

常见问题

InputSystem 用什么语言开发?

主要使用 C# 编写,采用 Other 许可证,目前有 1.5k 个 Star。

InputSystem 可以免费商用吗?

仓库标注的许可证为 Other,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 InputSystem 的源码?

可以直接克隆仓库:git clone https://github.com/Unity-Technologies/InputSystem.git,默认分支为 develop;安装与运行步骤见仓库 README。

InputSystem 最近还在维护吗?

仓库最近一次更新为 1 天前,当前有 3 个未关闭 Issue;Star 数为 1.5k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

An efficient and versatile input system for Unity.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
2540
价值分
1050
活跃状态
活跃

语言占比

Batchfile
C#
HLSL
Objective-C++
PowerShell
ShaderLab
Shell

Release

README

Unity Input System (Package)

Important 重要

Starting with Unity 6.7, Input System development has moved to an internal Unity repository. This repository is now in maintenance mode: only fixes for critical bugs and issues that cause high user pain are backported here. See CONTRIBUTIONS.md for how to report bugs and share feedback.

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 and no longer accepts external pull requests. See CONTRIBUTIONS.md for details.

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

To report a bug, use the Unity Bug Reporter as described in Reporting bugs.

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.

评论

暂无评论