---
title: Unity 基本类型
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/scripting/object-oriented-development/fundamental-unity-types
latest_url: https://docs.unity.com/zh-cn/engine/7000.0/manual/scripting/object-oriented-development/fundamental-unity-types.md
generated_at: 2026-11-16T11:29:06.534Z
locale: zh-cn
---

# Unity 基本类型

> 了解 Unity 提供的一些基本 C# 类型及其在 Unity Editor 和运行时时中的特殊意义和行为。

Unity 有一些基本的内置类对于脚本特别重要。这些类是您自己的自定义可以Inherit的类，以便与Editor器和引擎功能集成。了解这些类型及其行为以及您应该Inherit或使用它们的原因会很有帮助。

有关 All 内置类和每个可用成员的完整参考，请参阅[脚本参考](ScriptRef:index)。

| **主题**                                                                                                                                 | **描述**                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| **对象**                                                                                                                                 | `UnityEngine.Object` 是 Editor 可从 Inspector 窗口中的字段引用的所有对象的底部类。 |
| MonoBehaviour                                                                                                                          | Inherit from `MonoBehaviour` 使脚本成为组件，并控制游戏对象的行为，使它们对事件做出反应。   |
| **[ScriptableObject](/engine/6000.0/manual/scripting/object-oriented-development/fundamental-unity-types/class-scriptable-object.md)** | 从 `ScriptableObject` Inherit 存储独立于游戏对象的数据。                    |
| **[Unity Attributes](/engine/6000.0/manual/scripting/object-oriented-development/fundamental-unity-types/unity-attributes.md)**        | 使用 Unity 指定的 C# Attributes 为代码定义特殊行为。                         |

## 其他资源##additional-resources

* [Unity 脚本参考](ScriptRef:index)
