---
title: 管理更新和执行 Order
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/managing-update-order
latest_url: https://docs.unity.com/zh-cn/engine/7000.0/manual/scripting/object-oriented-development/managing-update-order.md
generated_at: 2026-11-16T11:29:06.436Z
locale: zh-cn
---

# 管理更新和执行 Order

> 了解 Unity 在运行时时应用程序程序Loop期间执行脚本组件的Order以及这些脚本中的Lifecycle周期回调。

Unity 运行时 Applications 在 Loop 中运行，其中引擎反复处理输入、更新游戏状态和渲染帧。这通常称为游戏或 Player Loop。传统的基于组件的 Unity Projects 使用 [MonoBehaviour](/engine/6000.0/manual/scripting/object-oriented-development/fundamental-unity-types/class-mono-behaviour.md) 脚本[组件](/engine/6000.0/manual/working-with-gameobjects/unity-components/components.md)通过一系列称为[事件函数](/engine/6000.0/manual/scripting/object-oriented-development/managing-update-order/event-functions.md)的内置回调连接到 Player Loop，从而有机会每帧更新游戏对象或响应指定的事件。

了解执行 Order 可以帮助您自定义和优化 Project。例如，可能需要确保某些设置工作始终在第一[帧更新](/engine/6000.0/manual/scripting/object-oriented-development/managing-time-and-frame-rate/time-per-frame-updates.md)之前进行，或者控制车辆引擎的脚本始终在控制其 Steering 的脚本之前运行。

| **主题**                                                                                                                                | **描述**                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| **[脚本执行顺序](/engine/6000.0/manual/scripting/object-oriented-development/managing-update-order/script-execution-order.md)**             | 了解 Unity 如何确定各个 MonoBehaviour 脚本执行的优先级。                                                      |
| **[事件函数](/engine/6000.0/manual/scripting/object-oriented-development/managing-update-order/event-functions.md)**                      | 事件函数是一设置内置回调，您可以ON MonoBehaviour 派生的脚本上实现这些回调来响应与Physics、渲染、输入、Scene加载中和Object生命周期相关的核心引擎事件。 |
| **[事件函数执行 Order](/engine/6000.0/manual/scripting/object-oriented-development/managing-update-order/execution-order.md)**              | 了解 Unity 内置事件函数的执行 Order，以便可以响应事件并以正确的 Order 更新游戏状态。                                         |
| **[自定义 Player Loop](/engine/6000.0/manual/scripting/object-oriented-development/managing-update-order/player-loop-customizing.md)**   | 自定义 Player Loop可Change Unity 在Loop的每个迭代中更新系统的Order。                                          |
| **[使用自定义更新管理员](/engine/6000.0/manual/scripting/object-oriented-development/managing-update-order/events-per-frame-optimization.md)**  | 创建更新管理员以手柄每帧许多更新。                                                                            |
| **[Inspector 可配置的 Custom Events](/engine/6000.0/manual/scripting/object-oriented-development/managing-update-order/unity-events.md)** | 创建自己的 Custom Events 可在 Inspector 窗口中配置持久（在编辑模式和播放模式之间持久）回调。                                  |

## 其他资源##additional-resources

* [每帧更新](/engine/6000.0/manual/scripting/object-oriented-development/managing-time-and-frame-rate/time-per-frame-updates.md)
* [PlayerLoop API 参考](/engine/6000.0/script-reference/unityengine/lowlevel/playerloop.md)
