---
title: 输入简介
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/zh-cn/engine/6000.0/manual/input/introduction
latest_url: https://docs.unity.com/zh-cn/engine/7000.0/manual/input/introduction.md
last_updated: 2026-09-14
generated_at: 2026-11-16T05:21:50.401Z
locale: zh-cn
---

# 输入简介

> 了解在 Unity 中实现输入的不同选项。

Unity 中的输入是指 Users 使用物理设备从外部世界向游戏或应用程序发送信号。

Unity 支持来自多种类型的设备的输入，例如游戏手柄、鼠标、键盘、触摸屏、操作杆、加速度计或陀螺仪等运动传感器以及 VR 和 AR 控制器。几乎每个Project都需要某种输入，无论是允许Users导航 UI、Control游戏中的角色，还是Move并与虚拟现实中的对象交互。

Unity 有两种实现输入的方法：

* **Input System 包**，更新、更灵活、支持更好。
* Legacy Editor（包括内置的 `Input` 类）。

## Input System包##the-input-system-package

默认情况下，[Input System 包](https://docs.unity3d.com/Packages/com.unity.inputsystem@latest)在 Unity 中提供输入 Support。如果需要，还可以通过[包管理器](/engine/6000.0/manual/packages-list/packages.md)进行安装。

这是大多数Projects的推荐解决方案。它在 Editor 中提供了一个直观的界面来配置输入，并提供各种工作流程来适应您的Project和编码样式。


**The Actions Editor window, with some default actions provided by the Input System Package:**
![](/api/media?file=/engine/6000.0/media/images/InputManagerActionsEditor.png)

开始使用 [Input System 包](https://docs.unity3d.com/Packages/com.unity.inputsystem@latest)。

## Legacy版项Projects##legacy-projects

如果您支持的项目需要使用较旧的输入管理器，请参阅 [Legacy 输入管理器文档](/engine/6000.0/manual/input/legacy.md)。

## 其他资源##additional-resources

* [Input System 包](https://docs.unity3d.com/Packages/com.unity.inputsystem@latest)
* [Legacy 输入管理器](/engine/6000.0/manual/input/legacy/class-input-manager.md)
