查看: 1950|回复: 0
打印 上一主题 下一主题

[Unity 组件参考手册]组件:管理器设置之脚本执行顺序设置

[复制链接]
.    

3797

主题

11

听众

5万

积分

首席设计师

Rank: 8Rank: 8

纳金币
32328
精华
41

活跃会员 优秀版主 荣誉管理 论坛元老

跳转到指定楼层
楼主
发表于 2013-1-31 22:52:36 |只看该作者 |倒序浏览
By default, the Awake, OnEnable and Update functions of different scripts are called in the order the scripts are loaded (which is arbitrary). However, it is possible to modify this order using the Script Execution Order settings.默认情况下,不同的脚本的Awake,OnEnable,Update函数根据脚本的加载顺序来依次调用(脚本的加载顺序是不确定的)。我们可以通过设置脚本执行顺序来改变它。Scripts can be added to the inspector using the Plus "+" button and dragged to change their relative order. Note that it is possible to drag a script either above or below the Default Time bar; those above will&nbsp***cute ahead of the default time while those below will&nbsp***cute after. The ordering of scripts in the dialog from top to bottom determines their&nbsp***cution order. All scripts not in the dialog&nbsp***cute in the default time slot in arbitrary order.脚本可以使用加号"+"按钮添加到检视面板,可以拖动以改变脚本顺序。注意,脚本可以拖到默认时间段的上方或下方。默认时间段上方的脚本将提前执行,下方的脚本将延后执行。对话框中显示的脚本将按从上到下的顺序执行。不在对话框中的脚本将在默认时间段中以不确定顺序执行。【来源:互联网】
更多精彩教程,尽在web3D纳金网http://www.narkii.com/college/
分享到: QQ好友和群QQ好友和群 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
转播转播0 分享淘帖0 收藏收藏0 支持支持0 反对反对0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

关闭

站长推荐上一条 /1 下一条

手机版|纳金网 ( 闽ICP备08008928号

GMT+8, 2024-5-21 19:50 , Processed in 0.080431 second(s), 33 queries .

Powered by Discuz!-创意设计 X2.5

© 2008-2019 Narkii Inc.

回顶部