---
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/working-with-gameobjects/unity-components
latest_url: https://docs.unity.com/zh-cn/engine/7000.0/manual/working-with-gameobjects/unity-components.md
last_updated: 2026-09-14
generated_at: 2026-11-16T11:40:59.418Z
locale: zh-cn
---

# 向游戏对象添加组件

> 添加、创建和管理用于定义游戏对象行为和功能的组件。

组件定义了 Unity 中游戏对象的行为和功能。向游戏对象对象添加组件以提供播放音频、响应Physics或running自定义义脚本等功能。

| **主题**                                                                                                        | **描述**                                     |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| **[组件简介](/engine/6000.0/manual/working-with-gameobjects/unity-components/components.md)**                     | 组件的 Overview。                              |
| **[使用组件](/engine/6000.0/manual/working-with-gameobjects/unity-components/using-components.md)**               | 如何使用组件。                                    |
| **[使用脚本创建组件](/engine/6000.0/manual/working-with-gameobjects/unity-components/creating-components.md)**        | 学习使用脚本创建组件。                                |
| **[管理组件及其值](/engine/6000.0/manual/working-with-gameobjects/unity-components/inspector-manage-components.md)** | 在 Inspector 窗口中添加、移除、重新排序和编辑组件 Properties。 |
| **[约束组件](/engine/6000.0/manual/working-with-gameobjects/unity-components/constraint-components.md)**          | 添加约束组件以相对于Other位置、Move和管理游戏对象对象。           |

## 其他资源##additional-resources

* [在 Editor 中与游戏对象交互](/engine/6000.0/manual/gameobjects-interacting.md)
* [Inspector 窗口](/engine/6000.0/manual/unity-editor/editor-windows-views-reference/using-the-inspector.md)
